/* =========================================================
   Diagnóstico de Presença Digital Local — visual
   ========================================================= */
:root {
  --bg: #07100f;
  --bg-soft: #0d1a18;
  --bg-ink: #101515;
  --panel: rgba(13, 26, 24, 0.78);
  --panel-solid: #111c1a;
  --text: #f4fbf8;
  --muted: #aab8b4;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #17d8c0;
  --lime: #b9ff4c;
  --yellow: #ffd166;
  --coral: #ff7a59;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  color-scheme: dark;
}

 * { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 82% 6%, rgba(23, 216, 192, 0.12), transparent 26rem),
    linear-gradient(180deg, #07100f 0%, #0b1513 55%, #0d1a18 100%);
  color: var(--text);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
.hidden { display: none !important; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--lime);
  color: #07100f;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------------- botões ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.86rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--lime), var(--teal));
  color: #07100f;
  box-shadow: 0 18px 48px rgba(185, 255, 76, 0.18);
}
.btn-secondary,
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.btn-whats {
  background: #22c55e;
  color: #04140a;
}

/* ---------------- header ---------------- */
.dg-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 5vw;
  background: rgba(7, 16, 15, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}
.dg-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}
.dg-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--lime));
  color: #07100f;
  font-size: 0.9rem;
}
.dg-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.94rem;
  color: rgba(244, 251, 248, 0.82);
}
.dg-nav a:hover { color: var(--lime); }
.dg-nav-cta {
  border: 1px solid rgba(185, 255, 76, 0.4);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  color: var(--lime);
  font-weight: 800;
}

/* ---------------- hero ---------------- */
.dg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0 3rem;
}
.dg-eyebrow {
  margin: 0 0 0.9rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dg-hero h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.02;
}
.dg-lead {
  max-width: 620px;
  color: rgba(244, 251, 248, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}
.dg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.8rem 0 1.4rem;
}
.dg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.dg-tags span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 251, 248, 0.78);
  font-size: 0.82rem;
}
.dg-hero-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 15, 14, 0.8);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.dg-card-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dg-card-score {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0.4rem 0 0.6rem;
}
.dg-card-score strong {
  font-size: 3.6rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--lime), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dg-card-score span { color: var(--muted); font-weight: 800; }
.dg-card-frase {
  margin-bottom: 1rem;
  color: rgba(244, 251, 248, 0.86);
  font-weight: 700;
  line-height: 1.5;
}
.dg-card-sub {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dg-card-sub li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.dg-card-sub span { color: var(--muted); }
.dg-card-sub b {
  position: relative;
  z-index: 0;
  grid-column: 2;
  padding: 0.22rem 0.45rem;
  border-radius: 5px;
  color: var(--text);
  font-size: 0.8rem;
  text-align: right;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.dg-card-sub b::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  background: linear-gradient(90deg, rgba(23, 216, 192, 0.5), rgba(185, 255, 76, 0.5));
  z-index: -1;
}

/* ---------------- como funciona ---------------- */
.dg-como {
  background: #0b1513;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(3rem, 7vw, 5rem) 5vw;
}
.dg-section-head {
  width: min(760px, 100%);
  margin: 0 auto 2.2rem;
  text-align: center;
}
.dg-section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.08;
}
.dg-como-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.dg-como-grid li {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}
.dg-como-grid span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--teal));
  color: #07100f;
  font-weight: 900;
}
.dg-como-grid h3 { margin-bottom: 0.5rem; font-size: 1.12rem; }
.dg-como-grid p { margin: 0; color: rgba(244, 251, 248, 0.7); line-height: 1.6; font-size: 0.95rem; }

/* ---------------- wizard ---------------- */
.dg-wizard {
  width: min(880px, 92vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.dg-steps {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}
.dg-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.dg-steps li b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.78rem;
}
.dg-steps li.is-active {
  border-color: rgba(185, 255, 76, 0.45);
  background: rgba(185, 255, 76, 0.1);
  color: var(--text);
}
.dg-steps li.is-active b { background: var(--lime); color: #07100f; }
.dg-steps li.is-done b { background: var(--teal); color: #07100f; }

.dg-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(13, 26, 24, 0.72);
  box-shadow: var(--shadow);
}
.dg-panel-head h2 { margin-bottom: 0.4rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.dg-panel-head h3 { margin: 1.6rem 0 0.4rem; font-size: 1.15rem; }
.dg-panel-head p { margin-bottom: 1.2rem; color: rgba(244, 251, 248, 0.7); line-height: 1.55; }

.dg-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.dg-field { display: grid; gap: 0.45rem; }
.dg-field-wide { grid-column: 1 / -1; }
.dg-field > span { font-weight: 700; font-size: 0.92rem; }
.dg-field small { color: var(--muted); line-height: 1.45; }
.dg-field input,
.dg-field select,
.dg-q select,
.dg-q input[type="number"],
.dg-q input[type="text"],
.dg-conc-row input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 16, 15, 0.74);
  color: var(--text);
  font: inherit;
}
.dg-field input:focus,
.dg-field select:focus,
.dg-q select:focus,
.dg-q input:focus,
.dg-conc-row input:focus {
  outline: 2px solid rgba(185, 255, 76, 0.55);
  outline-offset: 2px;
}
.dg-campo-erro input { border-color: var(--coral); }
.dg-msg-erro { color: var(--coral); font-size: 0.85rem; font-weight: 700; }

.dg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* análise automática */
.dg-auto-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(7, 16, 15, 0.55);
  padding: 1.3rem;
}
.dg-auto-idle { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dg-auto-loading { display: flex; align-items: center; gap: 0.9rem; color: rgba(244, 251, 248, 0.8); }
.dg-auto-loading p { margin: 0; }
.dg-spin {
  width: 26px;
  height: 26px;
  flex: none;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: dg-spin 0.8s linear infinite;
}
@keyframes dg-spin { to { transform: rotate(360deg); } }

.dg-auto-ok-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.dg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
}
.dg-chip b { color: var(--lime); }
.dg-chip.is-ruim b { color: var(--coral); }
.dg-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dg-checks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(244, 251, 248, 0.82);
}
.dg-checks li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
.dg-checks li.is-ruim::before { content: "!"; background: rgba(255, 122, 89, 0.2); color: var(--coral); }
.dg-auto-erro .dg-erro-titulo { color: var(--coral); font-weight: 800; margin-bottom: 0.3rem; }
.dg-auto-erro p { margin-bottom: 0.7rem; color: rgba(244, 251, 248, 0.78); }

.dg-apikey {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}
.dg-apikey label { font-weight: 700; font-size: 0.92rem; }
.dg-apikey input {
  width: 100%;
  height: 46px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 16, 15, 0.74);
  color: var(--text);
  font: inherit;
}
.dg-apikey input:focus {
  outline: 2px solid rgba(185, 255, 76, 0.55);
  outline-offset: 2px;
}
.dg-apikey small { color: var(--muted); line-height: 1.5; }

.dg-manual {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}
.dg-manual h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.dg-manual-dica { color: var(--muted); margin-bottom: 1rem; font-size: 0.9rem; }

/* checklist */
.dg-grupo {
  margin-bottom: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(7, 16, 15, 0.5);
  overflow: hidden;
}
.dg-grupo-head {
  padding: 1rem 1.2rem 0.4rem;
}
.dg-grupo-head h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.dg-grupo-head p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.dg-grupo-body { padding: 0.4rem 1.2rem 1.2rem; display: grid; gap: 0.6rem; }

.dg-q {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dg-q:hover { border-color: rgba(185, 255, 76, 0.3); }
.dg-q.is-marca { background: rgba(185, 255, 76, 0.08); border-color: rgba(185, 255, 76, 0.35); }
.dg-q input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--lime);
  cursor: pointer;
}
.dg-q-txt strong { display: block; font-size: 0.95rem; line-height: 1.35; }
.dg-q-txt small { display: block; margin-top: 0.2rem; color: var(--muted); line-height: 1.45; }
.dg-q-opcao { flex: 1; display: grid; gap: 0.4rem; }
.dg-q-opcao > span { font-weight: 700; font-size: 0.95rem; }
.dg-q-opcao > small { color: var(--muted); }

/* concorrentes */
.dg-conc {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.6rem;
}
.dg-conc-row {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 16, 15, 0.5);
}
.dg-conc-topo { display: flex; gap: 0.6rem; align-items: center; }
.dg-conc-topo input { flex: 1; }
.dg-conc-remover {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(255, 122, 89, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 122, 89, 0.12);
  color: var(--coral);
  font-weight: 900;
  cursor: pointer;
}
.dg-conc-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dg-conc-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.83rem;
  cursor: pointer;
}
.dg-conc-checks input { accent-color: var(--teal); }

/* ---------------- relatório ---------------- */
.dg-relatorio {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 3rem;
}
.dg-rel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dg-rel-head h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.dg-rel-meta { color: var(--muted); font-size: 0.9rem; text-align: right; }

.dg-score-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 4vw, 2.5rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(13, 26, 24, 0.72);
  box-shadow: var(--shadow);
}
.dg-gauge { position: relative; width: 190px; height: 190px; flex: none; }
.dg-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dg-gauge .g-bg { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 12; }
.dg-gauge .g-val { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.dg-gauge-centro {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.dg-gauge-centro strong { font-size: 3.2rem; line-height: 1; }
.dg-gauge-centro span { color: var(--muted); font-weight: 800; }
.dg-gauge-centro em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dg-score-texto .dg-resumo {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
}
.dg-score-texto p { margin: 0; color: rgba(244, 251, 248, 0.72); line-height: 1.6; }
.dg-faixa-tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dg-subtitulo {
  margin: 2.2rem 0 1rem;
  font-size: 1.25rem;
}
.dg-subnotas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.dg-sub {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}
.dg-sub-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.dg-sub-topo span { font-weight: 800; font-size: 0.95rem; }
.dg-sub-topo strong { font-size: 1.55rem; line-height: 1; }
.dg-sub small { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.78rem; line-height: 1.4; min-height: 2.2em; }
.dg-barra {
  position: relative;
  height: 8px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.dg-barra i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
}
.dg-sub.is-ruim .dg-barra i { background: linear-gradient(90deg, var(--coral), var(--yellow)); }
.dg-sub.is-medio .dg-barra i { background: linear-gradient(90deg, var(--yellow), var(--lime)); }
.dg-detalhes { margin-top: 0.6rem; }
.dg-detalhes summary {
  cursor: pointer;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}
.dg-detalhes ul { margin: 0.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.dg-detalhes li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: rgba(244, 251, 248, 0.72);
}
.dg-detalhes li b.ok { color: #4ade80; }
.dg-detalhes li b.ruim { color: var(--coral); }

/* oportunidades */
.dg-oprt-lista { display: grid; gap: 0.75rem; }
.dg-oprt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}
.dg-oprt.is-alto { border-left-color: var(--coral); }
.dg-oprt.is-baixo { border-left-color: var(--teal); }
.dg-oprt-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 900;
}
.dg-oprt h4 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.dg-oprt-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.45rem; }
.dg-tag {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(244, 251, 248, 0.85);
}
.dg-tag.t-alto { background: rgba(255, 122, 89, 0.18); color: var(--coral); }
.dg-tag.t-medio { background: rgba(255, 209, 102, 0.16); color: var(--yellow); }
.dg-tag.t-baixo { background: rgba(23, 216, 192, 0.16); color: var(--teal); }
.dg-oprt p { margin: 0; color: rgba(244, 251, 248, 0.72); line-height: 1.55; font-size: 0.92rem; }

/* comparativo */
.dg-comp { display: grid; gap: 0.6rem; }
.dg-comp-linha {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.dg-comp-linha.is-voce {
  border-color: rgba(185, 255, 76, 0.4);
  background: rgba(185, 255, 76, 0.08);
}
.dg-comp-linha strong { font-size: 0.95rem; }
.dg-comp-linha .dg-barra { margin: 0; }
.dg-comp-linha b { font-size: 1.1rem; min-width: 2.2rem; text-align: right; }

/* CTA final */
.dg-cta-final {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2.4rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(185, 255, 76, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(23, 216, 192, 0.16), transparent 16rem),
    rgba(13, 26, 24, 0.85);
}
.dg-cta-final h3 { margin-bottom: 0.5rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); max-width: 560px; }
.dg-cta-final p { margin-bottom: 0; color: rgba(244, 251, 248, 0.72); max-width: 560px; line-height: 1.6; }
.dg-actions-rel { justify-content: center; }

/* ---------------- histórico ---------------- */
.dg-historico {
  background: #0b1513;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(3rem, 7vw, 4.5rem) 5vw;
}
.dg-hist-dica { color: var(--muted); margin: -1.2rem auto 0; max-width: 560px; text-align: center; }
.dg-hist-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.8rem;
  width: min(1100px, 100%);
  margin: 0 auto;
}
.dg-hist-vazio {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}
.dg-hist-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}
.dg-hist-card .dg-hist-nota { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.dg-hist-card h4 { margin: 0.4rem 0 0.15rem; font-size: 1rem; }
.dg-hist-card p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.dg-hist-acoes { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.dg-hist-acoes button {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}
.dg-hist-acoes button.is-excluir { color: var(--coral); border-color: rgba(255, 122, 89, 0.4); }

/* ---------------- footer ---------------- */
.dg-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #060d0c;
  padding: 2rem 5vw;
}
.dg-footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  color: var(--muted);
  font-size: 0.92rem;
}
.dg-footer-inner p { margin: 0; line-height: 1.6; }
.dg-footer-inner a:hover { color: var(--lime); }

/* ---------------- faixas de cor ---------------- */
.faixa-critico { background: rgba(255, 122, 89, 0.16); color: var(--coral); }
.faixa-atencao { background: rgba(255, 209, 102, 0.16); color: var(--yellow); }
.faixa-bom { background: rgba(23, 216, 192, 0.16); color: var(--teal); }
.faixa-otimo { background: rgba(185, 255, 76, 0.16); color: var(--lime); }
.faixa-excelente { background: rgba(185, 255, 76, 0.24); color: var(--lime); }
.cor-critico { color: var(--coral); }
.cor-atencao { color: var(--yellow); }
.cor-bom { color: var(--teal); }
.cor-otimo { color: var(--lime); }
.cor-excelente { color: var(--lime); }

/* ---------------- responsivo ---------------- */
@media (max-width: 980px) {
  .dg-hero { grid-template-columns: 1fr; }
  .dg-hero-card { display: none; }
  .dg-como-grid { grid-template-columns: 1fr; }
  .dg-subnotas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .dg-nav a:not(.dg-nav-cta) { display: none; }
  .dg-fields { grid-template-columns: 1fr; }
  .dg-field-wide { grid-column: auto; }
  .dg-steps li span { display: none; }
  .dg-score-block { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .dg-score-texto { text-align: left; }
  .dg-subnotas { grid-template-columns: 1fr; }
  .dg-checks { grid-template-columns: 1fr; }
  .dg-oprt { grid-template-columns: 1fr; }
  .dg-comp-linha { grid-template-columns: 1fr auto; }
  .dg-comp-linha .dg-barra { grid-column: 1 / -1; }
  .dg-rel-meta { text-align: left; }
  .btn { width: 100%; }
  .dg-actions .btn { width: auto; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Impressão / PDF (Ctrl+P → Salvar como PDF)
   ========================================================= */
@media print {
  :root { color-scheme: light; }
  body {
    background: #ffffff !important;
    color: #10201d !important;
    font-size: 11pt;
  }
  .skip-link,
  .dg-header,
  .dg-hero,
  .dg-como,
  .dg-wizard,
  .dg-historico,
  .dg-footer,
  .dg-actions,
  .dg-cta-final,
  .dg-detalhes summary,
  .dg-nav { display: none !important; }

  .dg-relatorio {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: block !important;
  }
  .dg-relatorio.hidden { display: block !important; }

  .dg-rel-head { border-bottom: 2px solid #10201d; }
  .dg-rel-head h2, .dg-subtitulo, .dg-oprt h4, .dg-cta-final h3 { color: #10201d !important; }
  .dg-rel-meta, .dg-oprt p, .dg-score-texto p, .dg-sub small, .dg-detalhes li { color: #44524f !important; }

  .dg-score-block,
  .dg-sub,
  .dg-oprt,
  .dg-comp-linha {
    background: #ffffff !important;
    border-color: #cfd8d5 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .dg-gauge-centro strong { color: #10201d !important; }
  .dg-gauge .g-bg { stroke: #e4ebe8; }
  .dg-barra { background: #e4ebe8 !important; }
  .dg-oprt { page-break-inside: avoid; }
  .dg-subnotas { grid-template-columns: repeat(4, 1fr); }
  .dg-detalhes ul { display: none; }

  .dg-faixa-tag, .dg-tag {
    border: 1px solid #b9c4c0;
    background: #f2f5ef !important;
    color: #10201d !important;
  }
  a { color: inherit; }
}
