/* Visual do sistema (painel, conta, pagamento e admin). Fonte da marca, amarelo só em ação e no que está pronto. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(fontes/barlow-condensed-900.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fontes/barlow-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fontes/barlow-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fontes/barlow-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --fundo: #f4f4f2;
  --painel: #fff;
  --tinta: #141414;
  --tinta-2: #55554f;
  --linha: #dcdcd6;
  --linha-forte: #85857f;
  --amarelo: #ffd400;
  --amarelo-forte: #f5c800;
  --vinho: #8a1c1c;
  --corte: 12px;
  --titulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fundo);
  color: var(--tinta);
  font: 400 1rem/1.5 var(--texto);
}
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
main:focus { outline: none; }
.estreito { max-width: 30rem; margin-inline: auto; }
img, video { max-width: 100%; }

h1, h2 {
  font-family: var(--titulo);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .75rem;
}
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; margin: 1.5rem 0 .5rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
.cabeca { margin-bottom: 1.5rem; }
.cabeca .tag { margin-bottom: .75rem; }
.cabeca p { color: var(--tinta-2); margin: 0; }
.meta { color: var(--tinta-2); font-size: .9375rem; }

a { color: var(--tinta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- Topo ---------- */
.barra { background: var(--tinta); color: #fff; }
.barra-dentro {
  max-width: 72rem;
  margin: 0 auto;
  padding: .5rem 1rem;
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
}
.barra :focus-visible { outline-color: #fff; }
.marca {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  padding: .3rem .9rem .2rem .6rem;
  color: var(--tinta);
  font: 900 1.5rem/1 var(--titulo);
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
}
.marca::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--amarelo);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.barra nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.barra nav a, .nav-botao {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 44px;
  padding: 3px 0 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #fff;
  font: 600 1rem/1.2 var(--texto);
  text-decoration: none;
  cursor: pointer;
}
.barra nav a:hover, .nav-botao:hover { border-bottom-color: var(--linha-forte); }
.barra nav a[aria-current="page"] { border-bottom-color: var(--amarelo); }
.barra form { margin: 0; }

/* ---------- Botões ---------- */
.botao {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .625rem 1.375rem;
  border: 0;
  background: none;
  color: var(--tinta);
  font: 700 1rem/1.2 var(--texto);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.botao::before, .botao::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.botao::before {
  inset: 0;
  background: var(--tinta);
  clip-path: polygon(0 0, calc(100% - var(--corte)) 0, 100% var(--corte), 100% 100%, 0 100%);
}
.botao::after {
  inset: 1px;
  background: var(--amarelo);
  clip-path: polygon(0 0, calc(100% - var(--corte) + .6px) 0, 100% calc(var(--corte) - .6px), 100% 100%, 0 100%);
  transition: background-color .15s;
}
.botao:hover::after { background: var(--amarelo-forte); }
.botao:active { transform: translateY(1px); }
.botao-sec::after { background: var(--painel); }
.botao-sec:hover::after { background: #ebebe6; }
.botao-cheio { width: 100%; }
.botao-pequeno { min-height: 40px; padding: .375rem .875rem; font-size: .9375rem; --corte: 9px; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.5rem 0; }
.acoes form { margin: 0; }

/* ---------- Formulários ---------- */
form { margin: 0 0 1rem; }
.campo { margin-bottom: 1.25rem; }
.campo > label, .opcoes legend { display: block; font-weight: 600; margin-bottom: .25rem; padding: 0; }
.opcional { font-weight: 400; color: var(--tinta-2); }
.ajuda { color: var(--tinta-2); font-size: .9375rem; margin: 0 0 .375rem; }
.erro { display: flex; gap: .375rem; align-items: flex-start; margin: 0 0 .375rem; color: var(--vinho); font-weight: 600; }
.erro .icone { margin-top: .125rem; }

:where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), textarea, select) {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .625rem .75rem;
  border: 1px solid var(--linha-forte);
  border-radius: 0;
  background: var(--painel);
  color: var(--tinta);
  font: inherit;
}
textarea { min-height: 6.5rem; resize: vertical; }
input[readonly] { background: var(--fundo); }
[aria-invalid="true"]:not([type="checkbox"], [type="radio"], [type="file"]) { border: 2px solid var(--vinho); padding: calc(.625rem - 1px) calc(.75rem - 1px); }
input[type="file"] { display: block; width: 100%; font: inherit; padding: .25rem 0; }
input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: .75rem;
  padding: .375rem .875rem;
  border: 1px solid var(--tinta);
  border-radius: 0;
  background: var(--painel);
  color: var(--tinta);
  font: 600 .9375rem/1.2 var(--texto);
  cursor: pointer;
}
input[type="file"][aria-invalid="true"] { outline: 2px solid var(--vinho); outline-offset: 2px; }

.senha { position: relative; }
.senha input { padding-right: 48px; }
.senha input[aria-invalid="true"] { padding-right: 47px; }
.botao-mostrar {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta);
  cursor: pointer;
}
.botao-mostrar:focus-visible { outline-offset: -4px; }

.opcoes { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 44px;
  padding: .5rem .875rem;
  border: 1px solid var(--linha-forte);
  background: var(--painel);
  font-weight: 600;
  cursor: pointer;
}
.chip span .icone { display: none; }
.chip input:checked + span { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.chip input:checked + span .icone { display: inline-block; }
.chip input:focus-visible + span { outline: 2px solid var(--tinta); outline-offset: 3px; }
.chip input[aria-invalid="true"] + span { border: 2px solid var(--vinho); padding: calc(.5rem - 1px) calc(.875rem - 1px); }

.aceite { display: flex; gap: .625rem; align-items: flex-start; margin: 0 0 1.25rem; }
.aceite input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--tinta); }
.aceite input[aria-invalid="true"] { outline: 2px solid var(--vinho); outline-offset: 2px; }
.linha-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; margin: 0 0 .75rem; }
.linha-form .campo { flex: 1 1 7rem; margin: 0; }

/* ---------- Avisos e situação ---------- */
.aviso {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 0 0 1.5rem;
  padding: .875rem 1rem;
  background: var(--painel);
  border: 1px solid var(--linha);
  border-left: 6px solid var(--tinta);
}
.aviso > .icone { margin-top: .125rem; }
.aviso p:last-child, .aviso ul:last-child { margin-bottom: 0; }
.aviso ul { margin: .25rem 0 0; padding-left: 1.25rem; }
.aviso-erro { border-left-color: var(--vinho); }
.aviso-erro > .icone { color: var(--vinho); }

.situacao {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .125rem .5rem;
  border: 1px solid var(--linha-forte);
  background: var(--painel);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.situacao .icone { width: 1em; height: 1em; vertical-align: 0; }
.situacao-producao { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.situacao-pronto, .situacao-confirmado { background: var(--amarelo); border-color: var(--tinta); }
.situacao-recusado { border-style: dashed; color: var(--tinta-2); }

.tag {
  display: inline-block;
  padding: .3rem .5rem .25rem;
  background: var(--amarelo);
  color: var(--tinta);
  font: 900 .875rem/1 var(--titulo);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Blocos ---------- */
.painel { margin: 0 0 1.5rem; padding: 1.25rem; background: var(--painel); border: 1px solid var(--linha); }
.painel > :last-child { margin-bottom: 0; }
.painel h2:first-child, .painel h3:first-child { margin-top: 0; }
.preco { font: 900 2.25rem/1 var(--titulo); }

.dados {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: var(--painel);
  border: 1px solid var(--linha);
}
.dados dt { font-weight: 600; color: var(--tinta-2); }
.dados dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.uso { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; max-width: 30rem; margin: .5rem 0; }
.uso span { height: 14px; border: 1px solid var(--tinta); background: var(--painel); }
.uso .usado { background: var(--tinta); }

.passos { list-style: none; counter-reset: passo; margin: 0 0 1.5rem; padding: 0; }
.passos > li { counter-increment: passo; position: relative; padding: 0 0 1.25rem 3rem; }
.passos > li::before {
  content: counter(passo);
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--tinta);
  color: #fff;
  font: 900 1.125rem/1 var(--titulo);
}
.passos h3 { margin: .25rem 0 .5rem; }

/* ---------- Tabelas ---------- */
.tabela { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; background: var(--painel); border: 1px solid var(--linha); }
.tabela th, .tabela td { padding: .625rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linha); }
.tabela th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; border-bottom: 2px solid var(--tinta); }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela .motivo { display: block; color: var(--tinta-2); font-size: .9375rem; margin-top: .25rem; }

/* ---------- Cortes prontos ---------- */
.cortes { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; }
.corte { display: flex; flex-direction: column; background: var(--painel); border: 1px solid var(--linha); }
.corte video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: var(--tinta); }
.corte-dentro { display: flex; flex-direction: column; gap: .5rem; padding: .75rem; }
.corte h3 { margin: 0; font-size: 1rem; }
.corte-titulo { margin: 0; }
.corte-dentro form, .corte-dentro .meta { margin: 0; }
.texto-post {
  margin: 0;
  padding: .5rem;
  background: var(--fundo);
  border: 1px solid var(--linha);
  font: 400 .875rem/1.45 var(--texto);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Texto legal ---------- */
.texto-legal { max-width: 42rem; }
.texto-legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.vigencia { color: var(--tinta-2); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--painel); border-top: 1px solid var(--linha); color: var(--tinta-2); font-size: .875rem; }
.rodape-dentro { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.rodape a { display: inline-block; padding: .375rem 0; color: var(--tinta); }

/* ---------- Utilidades ---------- */
.icone { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.so-leitor {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.pular {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--amarelo);
  color: var(--tinta);
  font-weight: 700;
}
.pular:focus { top: 1rem; }

@media (max-width: 700px) {
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
  .tabela tr { padding: .5rem 0; border-bottom: 1px solid var(--linha); }
  .tabela tbody tr:last-child { border-bottom: 0; }
  /* Rótulo fora do fluxo: o conteúdo da célula (selo, motivo, link e texto) segue junto na coluna da direita. */
  .tabela td { position: relative; min-height: 2rem; padding: .25rem .75rem .25rem 8.5rem; border: 0; }
  .tabela td::before { content: attr(data-label); position: absolute; top: .4rem; left: .75rem; width: 7rem; color: var(--tinta-2); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  .tabela .num { text-align: left; }
}
@media (max-width: 480px) {
  .dados { grid-template-columns: 1fr; gap: 0; }
  .dados dd { margin-bottom: .625rem; }
  .dados dd:last-child { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .botao, .marca { border: 1px solid ButtonText; }
  .botao::before, .botao::after, .marca::before { display: none; }
  .uso span { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .uso .usado { background: CanvasText; }
  .chip input:checked + span { outline: 2px solid Highlight; }
}
