:root {
  --preto: #0E0E0E; --grafite: #1E1E1E; --amarelo: #F2AB27; --laranja: #F27D16; --vinho: #731702;
  --cinza: #F2F2F2; --texto2: #5C5C5C; --borda: #E3E3E3; --borda2: #D4D4D4; --branco: #FFFFFF;
  --grad: linear-gradient(90deg, var(--amarelo), var(--laranja));
  --titulo: 'Glancyr', 'Segoe UI Semibold', 'Open Sans', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', 'Segoe UI', sans-serif; background: var(--cinza); color: var(--preto); line-height: 1.5; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.hero { background: var(--preto); color: var(--branco); }
.hero .wrap { padding-top: 28px; padding-bottom: 32px; }
.logo { height: 38px; display: block; margin-bottom: 22px; }
.hero h1 { font-family: var(--titulo); font-weight: 800; font-size: clamp(26px, 5vw, 38px); line-height: 1.1; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #C9C9C9; margin-top: 8px; }
.faixa { height: 6px; background: var(--grad); }

.grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: -0px; padding-top: 24px; padding-bottom: 24px; align-items: start; }
.grid > * { min-width: 0; }
.card { background: var(--branco); border: 1px solid var(--borda); border-radius: 14px; padding: 22px; }
h2 { font-family: var(--titulo); font-size: 19px; margin-bottom: 14px; }
h3 { font-family: var(--titulo); font-size: 15px; margin: 20px 0 8px; }

.campo { margin-bottom: 16px; min-width: 0; }
.linha { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
select { width: 100%; max-width: 100%; text-overflow: ellipsis; font: inherit; font-size: 15px; padding: 11px 12px; border: 1.5px solid var(--borda2); border-radius: 10px; background: var(--branco); color: var(--preto); }
select:focus, input:focus-visible, .btn:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 1px; }
select:disabled { background: var(--cinza); color: #9A9A9A; }
.campo.off label { color: #9A9A9A; }
.nota { font-size: 12.5px; color: var(--texto2); margin-top: 5px; }
.desc { font-size: 13.5px; color: var(--texto2); margin-top: 6px; min-height: 0; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--laranja); }

.resultado { position: sticky; top: 16px; }
.rotulo { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--texto2); }
.valor { font-family: var(--titulo); font-weight: 800; font-size: clamp(30px, 6vw, 40px); line-height: 1.15; margin-top: 4px; }
.sub { font-size: 14px; color: var(--texto2); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.chip { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--cinza); border: 1px solid var(--borda); }
.chip.sim { background: #FFF2DC; border-color: var(--amarelo); }

.btn { display: block; width: 100%; text-align: center; font: inherit; font-weight: 800; font-size: 15px; padding: 13px; border: 0; border-radius: 10px; cursor: pointer; background: var(--grad); color: var(--preto); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.wa { background: var(--preto); color: var(--branco); margin-top: 14px; }
.link { background: none; border: 0; font: inherit; font-size: 13px; color: var(--texto2); text-decoration: underline; cursor: pointer; margin-top: 10px; display: block; margin-left: auto; margin-right: auto; }

#itens { list-style: none; }
#itens li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--borda); font-size: 14px; }
#itens li .n { font-weight: 600; }
#itens li .d { font-size: 12.5px; color: var(--texto2); display: block; font-weight: 400; }
#itens li .v { white-space: nowrap; font-weight: 700; text-align: right; }
#itens li button { background: none; border: 0; color: var(--texto2); cursor: pointer; font-size: 16px; padding: 0 2px; }
.totais { margin-top: 10px; }
.totais div { display: flex; justify-content: space-between; font-weight: 800; padding: 3px 0; }

.rodape { padding-bottom: 32px; font-size: 13px; color: var(--texto2); text-align: center; }
.rodape a { color: var(--preto); }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .resultado { position: static; }
}
@media (max-width: 420px) {
  .linha { grid-template-columns: 1fr; gap: 0; }
}
