/* Diagnóstico de Marketing por conversa + dashboard. Usa os tokens e componentes de ../css/landing.css. */
.dg-pagina { background: radial-gradient(1200px 600px at 85% -10%, rgba(255, 87, 34, 0.12), transparent 60%), var(--bg); }
.dg { padding-top: 96px; }

/* ===== Etapa 1: conversa ===== */
.dg-etapa-conversa {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px);
    align-items: start; min-height: calc(100vh - 96px); padding-top: clamp(16px, 4vh, 48px); padding-bottom: 48px;
}
.dg-lado { position: sticky; top: 112px; }
.dg-titulo { margin: 0 0 18px; font-weight: 900; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.dg-sub { max-width: 46ch; }

.dg-progresso { margin-top: 8px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: rgba(26, 26, 26, 0.55); }
.dg-progresso-topo { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.dg-progresso-topo b { font-size: 20px; color: var(--orange); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dg-barra { height: 6px; margin: 12px 0 16px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dg-barra i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--orange-dark), var(--orange-light)); transition: width 0.6s var(--ease); }
.dg-itens { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dg-itens li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; }
.dg-itens li:last-child { border-bottom: 0; }
.dg-itens i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); transition: background 0.3s, border-color 0.3s; }
.dg-itens li.is-ok i { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.15); }
.dg-itens span { color: var(--text-2); }
.dg-itens b { font-weight: 600; color: var(--text-3); text-align: right; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-itens li.is-ok b { color: #fff; }
.dg-nota { margin: 14px 0 0; font-size: 12px; color: var(--text-3); }

.dg-chat {
    display: flex; flex-direction: column; height: min(720px, calc(100vh - 140px)); min-height: 520px; overflow: hidden;
    border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(14, 14, 13, 0.92);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.dg-chat-topo { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; border-bottom: 1px solid var(--line); }
.dg-chat-topo h2 { margin: 0; font-size: 16px; font-weight: 700; }
.dg-chat-topo p { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
.dg-log { padding: 22px 20px 10px; }
.dg-log .chat-msg { max-width: 82%; font-size: 16px; }
.dg-form { margin: 0 14px 14px; }
.dg-sugestoes { align-self: flex-start; padding: 2px 0 6px; max-width: 92%; }

/* ===== Etapa 2: dashboard ===== */
.dg-resultado { padding: clamp(40px, 8vh, 96px) 0 clamp(64px, 10vh, 120px); border-top: 1px solid var(--line); scroll-margin-top: 72px; animation: chatIn 0.6s var(--ease); }
.dg-res-topo { max-width: 860px; margin-bottom: clamp(32px, 5vh, 56px); }
.dg-resumo { font-size: clamp(17px, 1.4vw, 20px); color: #d8d8d8; }

.dg-bloco { margin-bottom: 28px; padding: clamp(22px, 3.5vw, 40px); border-radius: 24px; border: 1px solid var(--line); background: rgba(26, 26, 26, 0.5); }
.dg-bloco-topo { margin-bottom: 24px; }
.dg-bloco-topo h3 { margin: 0 0 6px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.dg-bloco-topo p { margin: 0; color: var(--text-2); font-size: 15px; }

.dg-slider { padding: 20px 22px; border-radius: 18px; background: rgba(255, 87, 34, 0.06); border: 1px solid rgba(255, 87, 34, 0.25); transition: box-shadow 0.4s; }
.dg-slider.is-destaque { box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.35); }
.dg-slider label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.dg-slider output { display: block; margin: 6px 0 12px; font-size: clamp(32px, 3.4vw, 46px); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.dg-slider input[type="range"] { width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--orange); cursor: pointer; -webkit-appearance: none; appearance: none; }
.dg-slider input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.dg-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); box-shadow: 0 4px 14px rgba(255, 87, 34, 0.5); }
.dg-slider input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.dg-slider input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); }
.dg-slider input[type="range"]:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
.dg-slider-faixa { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--text-3); }

.dg-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.dg-kpi { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 16px; background: rgba(1, 1, 0, 0.6); border: 1px solid var(--line); }
.dg-kpi span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.dg-kpi b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.dg-kpi:first-child b { color: var(--orange); }
.dg-kpi small { font-size: 13px; line-height: 1.4; color: var(--text-2); }

.dg-ideal { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 20px 22px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, 0.2); }
.dg-ideal-rotulo { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.dg-ideal b { display: block; margin: 4px 0; font-size: 28px; font-weight: 900; color: #fff; }
.dg-ideal p { margin: 0; max-width: 70ch; font-size: 14px; color: var(--text-2); }
.dg-ideal .btn { flex: none; }

.dg-graficos { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 16px; }
.dg-grafico { margin: 0; padding: 18px; border-radius: 16px; background: rgba(1, 1, 0, 0.6); border: 1px solid var(--line); }
.dg-grafico figcaption { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.dg-gauge { position: relative; height: 180px; }
.dg-gauge b { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 38px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dg-curva { position: relative; height: 260px; }

.dg-marca { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
.dg-radar { position: relative; height: 320px; }
.dg-media { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }
.dg-media b { display: block; font-size: 52px; font-weight: 900; line-height: 1; color: #fff; }
.dg-nota-item { margin-bottom: 16px; }
.dg-nota-topo { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.dg-nota-topo b { font-size: 22px; color: var(--orange); }
.dg-nota-topo small { font-size: 13px; color: var(--text-3); }
.dg-nota-barra { height: 8px; margin: 8px 0 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.dg-nota-barra i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--orange-dark), var(--orange-light)); }
.dg-nota-item p { margin: 0; font-size: 13px; color: var(--text-3); }
.dg-pontos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.dg-pontos > div { padding: 18px 20px; border-radius: 16px; background: rgba(1, 1, 0, 0.6); border: 1px solid var(--line); }
.dg-pontos h4 { margin: 0 0 10px; font-size: 15px; }
.dg-pontos ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.dg-pontos > div:first-child h4 { color: #22C55E; }
.dg-pontos > div:last-child h4 { color: #FBBF24; }

.dg-plano { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dg-plano li { padding: 22px; border-radius: 16px; border-top: 3px solid var(--orange); background: rgba(1, 1, 0, 0.6); }
.dg-plano span { display: block; margin-bottom: 12px; font-size: 32px; font-weight: 900; color: var(--orange); line-height: 1; }
.dg-plano p { margin: 0; font-size: 15px; line-height: 1.55; color: #e4e4e4; }
.dg-setor-dica { margin: 18px 0 0; font-size: 15px; color: var(--text-2); }
.dg-setor-dica b { color: #fff; }

.dg-cta { margin-top: 40px; text-align: center; }
.dg-cta h3 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 40px); font-weight: 800; }
.dg-cta .body { max-width: 56ch; margin-left: auto; margin-right: auto; }
.dg-cta .cta-row { justify-content: center; }
.dg-aviso { max-width: 80ch; margin: 28px auto 0; font-size: 12px; color: var(--text-3); }

@media (max-width: 960px) {
    .dg-etapa-conversa { grid-template-columns: 1fr; min-height: 0; }
    .dg-lado { position: static; }
    .dg-titulo { font-size: clamp(30px, 8vw, 44px); }
    .dg-progresso { padding: 16px 18px; }
    .dg-itens { grid-template-columns: 1fr 1fr; column-gap: 16px; }
    .dg-itens b { max-width: 110px; }
    .dg-chat { height: 78vh; height: 78dvh; min-height: 480px; }
    .dg-kpis { grid-template-columns: 1fr 1fr; }
    .dg-graficos, .dg-marca, .dg-pontos { grid-template-columns: 1fr; }
    .dg-plano { grid-template-columns: 1fr; }
    .dg-ideal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .dg { padding-top: 80px; }
    .dg-sub, .dg-nota { display: none; }
    .dg-titulo { margin-bottom: 14px; }
    .dg-progresso { padding: 12px 16px; }
    .dg-barra { margin-bottom: 0; }
    .dg-itens { display: none; }
    .dg-etapa-conversa { gap: 16px; }
    .dg-log .chat-msg { max-width: 90%; font-size: 15px; }
    .dg-radar { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .dg-resultado, .dg-barra i { animation: none; transition: none; }
}
