:root {
  --preto: #1a1919;
  --vermelho: #dd042b;
  --vermelho-escuro: #b90024;
  --cinza: #f6f6f6;
  --borda: #e2e2e2;
  --texto: #5e5e5e;
  --branco: #fff;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 85% 16%, rgba(221,4,43,.07), transparent 28rem), var(--cinza);
  color: var(--texto);
  font-size: 17px;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
h1, h2 { color: var(--preto); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.7vw, 3rem); }

.site-header { background: var(--preto); color: var(--branco); border-bottom: 4px solid var(--vermelho); }
.header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { display: block; width: 190px; max-width: 46vw; height: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.product-label {
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
nav { display: flex; gap: 6px; }
nav button, .header-link, .btn, .btn-sec, .choice {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
}
nav button, .header-link {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  padding: 0 14px;
}
nav button.active { background: var(--vermelho); border-color: var(--vermelho); }

main { width: min(1040px, calc(100% - 24px)); margin: 0 auto; padding: 28px 0 48px; flex: 1; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.muted { color: var(--texto); font-size: .92rem; }
.stack { display: grid; gap: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.card {
  position: relative;
  overflow: hidden;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(26,25,25,.08);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 96px; height: 5px;
  background: var(--vermelho);
  border-radius: 0 0 10px 0;
}
.sheet-head, .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.sheet-head { margin-bottom: 4px; }
.sheet-head strong { color: var(--preto); }
.grow { flex: 1; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--preto); }
input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  color: var(--preto);
  padding: 10px 12px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(221,4,43,.16); border-color: var(--vermelho); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { padding: 0 14px; background: #fff; color: var(--preto); border: 1px solid #d8d8d8; }
.choice.on { background: var(--vermelho); color: #fff; border-color: var(--vermelho); }
.btn {
  background: var(--vermelho);
  color: #fff;
  min-height: 50px;
  padding: 0 22px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(221,4,43,.2);
}
.btn-sec { background: #fff; color: var(--preto); border: 1px solid #cfcfcf; padding: 0 16px; text-decoration: none; display: inline-flex; align-items: center; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 700;
  background: #f1f1f1;
  color: var(--preto);
}
.quente { background: #fde8ec; color: var(--vermelho-escuro); }
.morno { background: #fff4df; color: #9a6408; }
.frio { background: #eef3f8; color: #1d4f91; }
.warn { color: #991b1b; background: #fee2e2; border-radius: 10px; padding: 10px 12px; }
.login { max-width: 460px; margin: 6vh auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #ececec; vertical-align: top; }
.table th { color: var(--texto); font-size: .78rem; }
.site-footer { background: var(--preto); color: rgba(255,255,255,.72); }
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .78rem;
}
#toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: var(--preto); color: #fff; border-radius: 999px; padding: 10px 16px;
}

@media (max-width: 720px) {
  .product-label { display: none; }
  .header-inner, .hero, .footer-inner { flex-direction: column; align-items: stretch; }
  .header-actions, nav { width: 100%; }
  nav button { flex: 1; }
  .cards, .grid { grid-template-columns: 1fr; }
  .btn, .btn-sec { width: 100%; justify-content: center; }
  .table { display: block; overflow-x: auto; }
}
