:root {
  --bg: #0a0a0d;
  --panel: #14141a;
  --line: #2a2a33;
  --text: #f2f2f5;
  --muted: #a0a0ad;
  --red: #ff2a2a;
  --red-dark: #c40f0f;
  --ok: #3ddc84;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 500px at 70% -10%, #3a0a0a 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--red); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 900; letter-spacing: 2px; font-size: 20px; color: var(--text); text-decoration: none; }
.brand b { color: var(--red); }
.btn {
  display: inline-block; border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, var(--red), var(--red-dark)); color: #fff;
  font: 700 16px/1 system-ui, sans-serif; padding: 14px 22px;
  box-shadow: 0 0 24px rgba(255, 42, 42, .35);
}
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.small { padding: 9px 14px; font-size: 14px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 36px 0; align-items: center; }
.hero img { width: 100%; max-width: 420px; justify-self: center; border-radius: 14px; border: 1px solid var(--line); }
.hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 6px; line-height: 1.1; }
.hero p.tag { color: var(--muted); margin: 0 0 18px; font-size: 18px; }
.price { font-size: 36px; font-weight: 800; margin: 14px 0; }
.price small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
ul.feat { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
ul.feat li { padding-left: 26px; position: relative; }
ul.feat li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 28px; }
.card h2 { margin: 0 0 16px; font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.grid .c1 { grid-column: span 1; } .grid .c2 { grid-column: span 2; } .grid .c3 { grid-column: span 3; } .grid .c4 { grid-column: span 4; } .grid .c6 { grid-column: span 6; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select {
  width: 100%; background: #0d0d11; color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--red); border-color: transparent; }
.ship { display: grid; gap: 8px; margin-top: 4px; }
.ship label.opt {
  display: flex; gap: 10px; align-items: center; justify-content: space-between; color: var(--text); font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; margin: 0;
}
.ship label.opt input { width: auto; margin-right: 8px; }
.ship label.opt:has(input:checked) { border-color: var(--red); background: #1c0e0e; }
.sum { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { font-size: 22px; font-weight: 800; }
.msg { min-height: 22px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.msg.err { color: #ff7a7a; }
.note { color: var(--muted); font-size: 13px; margin-top: 10px; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .links a { margin-right: 16px; }
.doc h1 { margin-top: 30px; } .doc h2 { margin-top: 26px; font-size: 20px; } .doc p, .doc li { color: #d6d6de; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag-st { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #222; font-size: 12px; }
.tag-st.etiqueta_gerada { background: #11351f; color: var(--ok); }
.tag-st.erro_etiqueta, .tag-st.revisar, .tag-st.falhou_link { background: #3a1212; color: #ff8a8a; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .grid .c1, .grid .c2, .grid .c3, .grid .c4 { grid-column: span 6; }
}
