/* ───────── Diagnóstico Digital ─────────
   Usa as cores, fontes e botões do style.css do site. Aqui fica só o que é desta página.
   Movimento: cada coisa anima uma vez, quando aparece. Nada fica repetindo, a não ser a luz do botão de compra. */

.dg {
  --crit: var(--alert); --aten: var(--warn); --bom: var(--ok);
  min-height: 100svh; display: flex; flex-direction: column;
  background: radial-gradient(70% 40% at 50% 0%, rgba(47, 107, 255, .16), transparent 70%), var(--bg);
}
.dg-main { flex: 1; width: 100%; }
.dg h4 { margin: 0; }
.dg-tela { padding: 0 var(--pad); }
/* a luz que percorre a borda dos botões fica só no botão de compra */
.dg .btn::after { content: none; }
.dg .dg-cta-compra::after { content: ""; }

/* entrada: sobe e aparece uma vez, em sequência (--i) */
.dg-in { animation: dg-up .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes dg-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes dg-fade { from { opacity: 0; } }

/* ───────── topo ───────── */
.dg-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: var(--inset) var(--edge) 0; }
.dg-top .logo { padding-left: 0; }
.dg-top__side { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.dg-top__back { color: var(--soft); }
.dg-top__outra { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid rgba(157, 188, 255, .3); background: rgba(79, 141, 255, .1); color: var(--text); font: 500 14px/1 var(--sans); cursor: pointer; transition: transform .3s var(--ease); }
.dg-top__outra[hidden] { display: none; }
.dg-top__outra svg { width: 14px; height: 14px; fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) { .dg-top__outra:hover { transform: scale(1.04); } }
/* no celular não cabem os dois: a logo já volta para o site */
@media (max-width: 480px) { .dg-top__side:has(.dg-top__outra:not([hidden])) .dg-top__back { display: none; } }

/* ───────── início ───────── */
.dg-inicio { max-width: var(--max); margin: 0 auto; padding-top: clamp(48px, 9vh, 104px); padding-bottom: var(--gap); }
.dg-inicio__panel { display: grid; justify-items: center; text-align: center; }
.dg-inicio__title { font-size: 64px; line-height: 1.05; font-weight: 400; letter-spacing: -.04em; max-width: 15ch; }
.dg-inicio__sub { max-width: 36em; margin-top: 24px; font-size: 18px; color: var(--soft); text-wrap: balance; }
.dg-cta { margin-top: 40px; }
.dg-inicio__retomar { margin-top: 20px; font-size: 14px; color: var(--muted); }
.dg-inicio__retomar .link { font-size: 14px; }
/* diagnósticos já feitos neste navegador */
.dg-meus { width: 100%; max-width: 440px; margin-top: 32px; text-align: left; }
.dg-meus h2 { font-size: 14px; font-weight: 500; color: var(--muted); }
.dg-meus ul { display: grid; gap: 8px; margin-top: 12px; }
.dg-meus a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: transform .3s var(--ease); }
.dg-meus a > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dg-meus svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--muted); }
@media (hover: hover) { .dg-meus a:hover { transform: scale(1.02); } }

.dg-passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(64px, 10vh, 112px); counter-reset: p; }
.dg-passos li { display: flex; gap: 16px; padding: 24px; border-radius: var(--r); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.dg-passos b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--ice); font: 600 16px/1 var(--display); }
/* títulos pequenos de cartão: texto liso, o degradê fica nos títulos grandes */
.dg-passos h2 { background: none; color: var(--text); font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.dg-passos p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ───────── perguntas ───────── */
.dg-perg { max-width: 760px; margin: 0 auto; padding-top: clamp(32px, 6vh, 64px); padding-bottom: 72px; }
.dg-prog { margin-bottom: clamp(32px, 6vh, 56px); }
.dg-prog__row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.dg-prog__row span:first-child { color: var(--text); font-weight: 500; }
.dg-prog__bar { height: 4px; margin-top: 12px; border-radius: 4px; background: var(--line); overflow: hidden; }
.dg-prog__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--ice)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease); }

.dg-q__body { display: grid; }
.dg-q__body.is-in { animation: dg-q-in .45s var(--ease) both; }
.dg-q__body.is-back { animation: dg-q-back .45s var(--ease) both; }
@keyframes dg-q-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes dg-q-back { from { opacity: 0; transform: translateX(-24px); } }
.dg-q__title { font-size: 36px; line-height: 1.15; font-weight: 400; letter-spacing: -.035em; outline: none; }
.dg-q__hint { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* opções: cartões grandes, fáceis de tocar; a letra mostra o atalho do teclado */
.dg-ops { display: grid; gap: 10px; margin-top: 32px; }
.dg-op { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 18px 12px 12px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); cursor: pointer; transition: border-color .25s, background-color .25s; }
.dg-op input { position: absolute; opacity: 0; pointer-events: none; }
.dg-op__key { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); font: 500 14px/1 var(--mono); color: var(--muted); transition: background-color .25s, border-color .25s, color .25s; }
.dg-op__txt { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.dg-op:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.dg-op:has(input:checked) .dg-op__key { background: var(--accent); border-color: var(--accent); color: #fff; }
.dg-op:has(input:focus-visible) { outline: 2px solid var(--ice); outline-offset: 3px; }
/* toque escolhido: um pulso curto antes de ir para a próxima */
.dg-op.is-picked { animation: dg-pick .32s var(--ease); }
@keyframes dg-pick { 50% { transform: scale(.985); } }
@media (hover: hover) {
  .dg-op:hover { border-color: rgba(170, 195, 255, .34); background: rgba(255, 255, 255, .05); }
}

.dg-campos { display: grid; gap: 16px; margin-top: 32px; }
.dg-campo { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.dg-campo input { width: 100%; padding: 16px 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 14px; color: var(--text); font: 500 18px/1.3 var(--sans); letter-spacing: -.015em; outline: none; transition: border-color .3s, background-color .3s; }
.dg-campo input:focus { border-color: var(--accent); background: rgba(79, 141, 255, .08); }
.dg-campo input::placeholder { color: var(--dim); font-weight: 400; }
.dg-campo.is-invalid input { border-color: var(--alert); }
.dg-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; font-size: 14px; color: var(--soft); cursor: pointer; }
.dg-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.dg-check a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.dg-check.is-invalid span { color: var(--alert); }
.dg-erro { margin-top: 16px; font-size: 14px; color: var(--alert); }

/* "Como você chegou até aqui?": opcional, de um toque, sem pesar na tela */
.dg-como { display: grid; gap: 12px; margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.dg-como legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.dg-como legend i, .dg-como__quem i { font-style: normal; font-weight: 400; color: var(--dim); }
.dg-como__ops { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-como__ops label { position: relative; cursor: pointer; }
.dg-como__ops input { position: absolute; opacity: 0; pointer-events: none; }
.dg-como__ops span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); font-size: 14px; color: var(--soft); transition: border-color .25s, background-color .25s, color .25s; }
.dg-como__ops input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.dg-como__ops input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
@media (hover: hover) {
  .dg-como__ops label:hover span { border-color: rgba(170, 195, 255, .34); color: #fff; }
}

.dg-q__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; min-height: 50px; }
.dg-q__foot .btn { margin-left: auto; }
.dg-voltar { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 8px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .25s, background-color .25s; }
.dg-voltar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dg-voltar[disabled] { visibility: hidden; }
.dg-pular { font-size: 14px; color: var(--muted); }
.dg-teclas { margin-top: 20px; font-size: 12px; color: var(--dim); }
@media (hover: hover) {
  .dg-voltar:hover { color: #fff; background: rgba(255, 255, 255, .06); }
}

/* ───────── resultado (prévia e relatório) ───────── */
.dg-res { max-width: 1040px; margin: 0 auto; padding-top: clamp(32px, 6vh, 64px); padding-bottom: var(--gap); }
.dg-bloco { margin-top: clamp(56px, 8vw, 88px); }
.dg-bloco > h2 { font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -.03em; }
.dg-bloco > h2 + p { margin-top: 8px; color: var(--muted); }
.dg-card { position: relative; border-radius: var(--r); background: #080b15; border: 1px solid var(--line); }

/* abertura: nota grande à esquerda, leitura à direita */
.dg-abre { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); padding: clamp(24px, 4vw, 48px); background: radial-gradient(70% 90% at 0% 0%, rgba(47, 107, 255, .2), transparent 70%), #080b15; }
.dg-abre__txt h1 { font-size: 40px; line-height: 1.12; font-weight: 400; letter-spacing: -.035em; }
.dg-abre__txt h1 strong { font-weight: 600; }
.dg-abre__txt p { margin-top: 16px; font-size: 18px; color: var(--soft); max-width: 36em; }
.dg-abre__txt p + p { margin-top: 12px; }
.dg-abre__meta { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* medidor: anel que enche até a nota; a cor diz a faixa */
.dg-gauge { position: relative; width: 200px; aspect-ratio: 1; }
.dg-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dg-gauge circle { fill: none; stroke-width: 9; }
.dg-gauge__track { stroke: rgba(170, 195, 255, .1); }
.dg-gauge__val { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.dg-gauge.is-on .dg-gauge__val { stroke-dashoffset: calc(100 - var(--v)); }
.dg-gauge__num { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.dg-gauge__num b { font: 400 64px/1 var(--display); letter-spacing: -.05em; }
.dg-gauge__num span { margin-top: 4px; font-size: 14px; color: var(--muted); }

.dg-faixa { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap; }
.dg-faixa::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* a faixa fica embaixo do anel, fora dele */
.dg-medidor { display: grid; justify-items: center; gap: 16px; }
[data-faixa="critico"] { --c: var(--crit); }
[data-faixa="atencao"] { --c: var(--aten); }
[data-faixa="bom"] { --c: var(--bom); }

/* notas por área: barra que enche uma vez */
.dg-notas { display: grid; gap: 4px; margin-top: 24px; padding: 12px clamp(16px, 3vw, 32px); }
/* a última coluna tem largura fixa para as barras terminarem todas no mesmo ponto */
.dg-nota { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 48px 168px; align-items: center; gap: 20px; padding: 16px 0; }
.dg-nota + .dg-nota { border-top: 1px solid var(--line); }
.dg-nota__nome { font-weight: 500; }
.dg-nota__nome small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.dg-nota__bar { height: 8px; border-radius: 8px; background: rgba(170, 195, 255, .08); overflow: hidden; }
.dg-nota__bar i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--c); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease); transition-delay: calc(.3s + var(--i, 0) * 90ms); }
.dg-notas.is-on .dg-nota__bar i { transform: none; }
.dg-nota__num { font: 500 20px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.dg-nota .dg-faixa { justify-self: start; min-width: 0; }

/* os 3 problemas */
.dg-probs { display: grid; gap: 16px; margin-top: 24px; }
.dg-prob { padding: clamp(22px, 3.4vw, 36px); }
.dg-prob__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dg-prob__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--ice); font: 600 18px/1 var(--display); }
.dg-prob__head h3 { font-size: 24px; letter-spacing: -.025em; margin-right: auto; }
.dg-prob__head .dg-nota__num { font-size: 16px; color: var(--muted); }
.dg-prob__achado { display: flex; gap: 12px; margin-top: 20px; font-size: 18px; color: var(--soft); }
.dg-prob__achado svg { flex: none; width: 20px; height: 20px; margin-top: 4px; fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linecap: round; }
.dg-prob__achado strong { font-weight: 600; color: var(--text); }

/* bloqueado: a lista do que o relatório traz sobre esse ponto, com cadeado (o texto pago não vem na página) */
.dg-lock { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: rgba(79, 141, 255, .06); border: 1px solid rgba(120, 165, 255, .2); }
.dg-lock__itens { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dg-lock__itens li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.dg-lock__itens svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ice); stroke-width: 1.6; }
/* "liberar": botão pequeno, para ficar claro que leva a algum lugar */
.dg-lock__cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--accent-deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; transition: background-color .3s; }
.dg-lock__cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .4s var(--ease); }
@media (hover: hover) { .dg-lock__cta:hover { background: var(--accent); } .dg-lock__cta:hover svg { transform: translateY(2px); } }
@media (max-width: 640px) { .dg-lock__itens { flex-direction: column; } }

/* ofertas */
.dg-ofertas { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; align-items: start; }
.dg-oferta { padding: clamp(24px, 4vw, 40px); }
.dg-oferta--main { background: radial-gradient(80% 70% at 100% 0%, rgba(47, 107, 255, .26), transparent 62%), #080b15; border-color: rgba(120, 165, 255, .4); }
.dg-oferta h3 { font-size: 24px; letter-spacing: -.025em; }
.dg-preco { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.dg-preco b { font: 500 60px/1 var(--display); letter-spacing: -.045em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.dg-oferta--sec .dg-preco b { font-size: 44px; }
.dg-preco s { color: var(--muted); font-size: 18px; }
.dg-preco span { color: var(--muted); font-size: 14px; }
.dg-lista { display: grid; gap: 12px; margin-top: 24px; }
.dg-lista li { display: flex; gap: 12px; color: var(--soft); }
.dg-lista svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 1.8; }
.dg-oferta .btn { margin-top: 32px; }
/* formas de pagamento: só as logos, em cinza claro */
.dg-pag { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 20px; }
.dg-pag li { display: flex; }
.dg-pag img { width: 26px; height: 26px; opacity: .85; }
.dg-oferta__nota { margin-top: 14px; font-size: 14px; color: var(--muted); }
.dg-oferta__nota a, .dg-convite__preco .dg-oferta__nota a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.dg-oferta p.dg-oferta__txt { margin-top: 12px; color: var(--soft); }
.dg-oferta--sec .btn { --p: 5px; --d: 30px; gap: 12px; padding-left: 18px; font-size: 14px; }
.dg-aviso { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--soft); font-size: 14px; }

/* suas respostas: usa o acordeão do FAQ do site, sem o número na frente */
.dg-respostas summary::before { content: none; }
.dg-respostas summary span { display: grid; gap: 2px; }
.dg-respostas summary small { font: 400 14px/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }
.dg-respostas__corpo { display: grid; gap: 28px; padding: 4px 24px 28px; }
.dg-resp-grupo h3 { font-size: 16px; color: var(--ice); }
.dg-resp-grupo dl { margin: 8px 0 0; }
.dg-resp { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.dg-resp dt { color: var(--muted); font-size: 14px; }
.dg-resp dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--text); }
@media (max-width: 640px) { .dg-resp { grid-template-columns: 1fr; } }

/* ───────── relatório ───────── */
.dg-barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.dg-barra b { color: var(--text); font-weight: 600; }
.dg-btn2 { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--text); transition: background-color .25s, border-color .25s; }
.dg-btn2 svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
@media (hover: hover) { .dg-btn2:hover { background: rgba(255, 255, 255, .06); border-color: rgba(170, 195, 255, .34); } }

.dg-sec { margin-top: 24px; }
.dg-sec h4 { font: 600 14px/1.3 var(--sans); color: var(--muted); letter-spacing: 0; }
.dg-sec p { margin-top: 6px; font-size: 16px; color: var(--soft); }
.dg-sec--dupla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dg-sec--dupla .dg-sec { margin-top: 0; }

/* passo a passo: dá para marcar o que já foi feito (fica salvo neste navegador) */
.dg-passo { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; cursor: pointer; }
.dg-passo + .dg-passo { border-top: 1px solid var(--line); }
.dg-passo input { position: absolute; opacity: 0; pointer-events: none; }
.dg-passo__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-2); transition: background-color .25s, border-color .25s; }
.dg-passo__box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); }
.dg-passo input:checked + .dg-passo__box { background: var(--ok); border-color: var(--ok); }
.dg-passo input:checked + .dg-passo__box svg { opacity: 1; transform: none; stroke: #05070f; }
.dg-passo input:focus-visible + .dg-passo__box { outline: 2px solid var(--ice); outline-offset: 3px; }
.dg-passo__txt { flex: 1; font-size: 16px; color: var(--text); transition: color .25s; }
.dg-passo input:checked ~ .dg-passo__txt { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(138, 147, 168, .6); }
.dg-tempo { flex: none; margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 12px; font-weight: 500; color: var(--soft); white-space: nowrap; }
.dg-sozinho { display: block; margin-top: 20px; padding: 10px 16px; border-radius: 14px; font-size: 14px; color: var(--soft); background: rgba(255, 255, 255, .04); }
.dg-sozinho b { color: var(--c); font-weight: 600; }
.dg-sozinho[data-sim="true"] { --c: var(--ok); }
.dg-sozinho[data-sim="false"] { --c: var(--ice); }
/* relatórios novos */
.dg-ajuda { display: grid; gap: 12px; margin-top: 20px; padding: 16px 20px; border-radius: 16px; font-size: 14px; color: var(--soft); background: rgba(79, 141, 255, .07); border: 1px solid rgba(157, 188, 255, .16); }
.dg-ajuda p b { color: var(--ice); font-weight: 600; }
.dg-ajuda a { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); transition: transform .3s var(--ease); }
.dg-ajuda a svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (hover: hover) { .dg-ajuda a:hover { transform: scale(1.03); } }
.dg-convite__fazer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }

/* plano de 30 dias: quatro semanas lado a lado, ligadas por uma linha */
.dg-plano { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.dg-plano::before { content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 1px; background: var(--line-2); }
.dg-plano li { position: relative; }
.dg-plano b { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); font: 600 16px/1 var(--display); color: var(--ice); }
.dg-plano h3 { margin-top: 16px; font-size: 16px; }
.dg-plano p { margin-top: 6px; font-size: 16px; color: var(--soft); }

.dg-bons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.dg-bom { padding: 24px; }
.dg-bom svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); fill: none; stroke: var(--ok); stroke-width: 2; }
.dg-bom h3 { margin-top: 16px; font-size: 18px; }
.dg-bom p { margin-top: 6px; color: var(--soft); font-size: 16px; }

.dg-convite { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); background: radial-gradient(80% 90% at 100% 0%, rgba(47, 107, 255, .26), transparent 62%), #080b15; border-color: rgba(120, 165, 255, .4); }
.dg-convite h2 { font-size: 32px; line-height: 1.15; font-weight: 400; letter-spacing: -.035em; }
.dg-convite p { margin-top: 14px; color: var(--soft); }
.dg-convite__preco .dg-preco { margin-top: 0; }
.dg-convite__preco .btn { margin-top: 20px; }
/* fazer para outra empresa: discreto, no fim da página */
.dg-outra { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: clamp(24px, 3vw, 32px); border-radius: var(--r); border: 1px solid var(--line); }
.dg-outra > div { flex: 1 1 320px; }
.dg-outra .btn { flex: none; }
.dg-outra h2 { font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: -.03em; }
.dg-outra p { margin-top: 8px; color: var(--muted); text-wrap: balance; }
.dg-outra .btn { --p: 5px; --d: 30px; gap: 12px; padding-left: 18px; font-size: 14px; }

/* espera: confirmando o pagamento ou escrevendo o relatório */
.dg-espera { grid-template-columns: 1fr; max-width: 720px; margin: clamp(24px, 8vh, 96px) auto 0; }
.dg-espera .btn { margin-top: 28px; }
/* a barra enche uma vez, devagar, até perto do fim; não fica repetindo */
.dg-espera__bar { height: 4px; margin-top: 32px; border-radius: 4px; background: var(--line); overflow: hidden; }
.dg-espera__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--ice)); transform-origin: 0 50%; transform: scaleX(.04); transition: transform 90s cubic-bezier(.1, .6, .2, 1); }
.dg-espera__bar.is-on i { transform: scaleX(.94); }

/* ───────── PDF: páginas A4 (o servidor abre ?r=<id>&pdf=1 e imprime) ───────── */
@page { size: A4; margin: 0; }
.is-pdf body { background: var(--bg); min-height: 0; }
.is-pdf .dg-top, .is-pdf body > .footer { display: none; }
.is-pdf *, .is-pdf *::before, .is-pdf *::after { animation: none !important; transition: none !important; }
.dg-pdf { padding: 0; }
.pg {
  position: relative; display: flex; flex-direction: column; width: 210mm; height: 297mm; overflow: hidden; padding: 14mm 16mm 12mm;
  background: radial-gradient(90% 40% at 100% 0%, rgba(47, 107, 255, .14), transparent 70%), var(--bg);
  break-after: page; font-size: 14px; line-height: 1.55;
}
.pg:last-child { break-after: auto; }
.pg h1, .pg h2 { background: none; color: var(--text); }
.pg h2 strong { color: var(--ice); }
.pg-topo { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6mm; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pg-topo img { height: 20px; width: auto; }
.pg-corpo { flex: 1; min-height: 0; padding-top: 9mm; }
.pg-rodape { display: flex; justify-content: space-between; padding-top: 4mm; border-top: 1px solid var(--line); font-size: 10px; color: var(--dim); }

.pg-empresa { font-size: 40px; line-height: 1.08; font-weight: 400; letter-spacing: -.035em; }
.pg-meta { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pg-abre { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 8mm; padding: 22px 24px; border-radius: 18px; background: #080b15; border: 1px solid var(--line); }
.pg-abre .dg-gauge { width: 140px; }
.pg-abre .dg-gauge__num b { font-size: 44px; }
.pg-abre h2 { font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: -.025em; }
.pg-abre p { margin-top: 10px; color: var(--soft); }
.pg-tit { margin-top: 9mm; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.pg-tit--topo { margin-top: 0; }
.pg .dg-notas { margin-top: 12px; padding: 4px 20px; border-radius: 18px; }
.pg .dg-nota { grid-template-columns: 170px minmax(0, 1fr) 36px 140px; gap: 16px; padding: 10px 0; }
.pg .dg-nota__num { font-size: 16px; }
.pg .dg-faixa { font-size: 12px; padding: 3px 10px 3px 8px; }
.pg-legenda { margin-top: 10px; font-size: 12px; color: var(--muted); }

.pg-secao { font-size: 12px; color: var(--muted); }
.pg-prob-head { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.pg-prob-head h2 { margin-right: auto; font-size: 30px; line-height: 1.1; font-weight: 400; letter-spacing: -.03em; }
.pg-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 9mm; padding: 20px 22px; border-radius: 18px; background: #080b15; border: 1px solid var(--line); }
.pg h4 { font: 600 12px/1.3 var(--sans); color: var(--ice); letter-spacing: 0; }
.pg-duas p { margin-top: 8px; color: var(--soft); }
.pg .pg-h4 { margin-top: 8mm; }
/* folha de problema: um problema só, em tamanho maior, ocupando a folha */
.pg--prob { font-size: 16px; line-height: 1.6; }
.pg--prob .pg-secao { font-size: 14px; }
.pg--prob .pg-prob-head { margin-top: 14px; }
.pg--prob .pg-prob-head h2 { font-size: 40px; }
.pg--prob .dg-prob__n { width: 48px; height: 48px; font-size: 20px; }
.pg--prob .pg-duas { margin-top: 12mm; padding: 28px 28px; gap: 32px; }
.pg--prob h4 { font-size: 14px; }
.pg--prob .pg-duas p { margin-top: 10px; }
.pg--prob .pg-h4 { margin-top: 12mm; }
.pg--prob .pg-passos li { gap: 14px; padding: 18px 0; }
.pg--prob .pg-passos i { width: 20px; height: 20px; }
.pg--prob .pg-passos em { font-size: 14px; }
.pg--prob .pg-sozinho { margin-top: 12mm; padding: 18px 22px; }
.pg--prob .pg-ajuda { margin-top: 10mm; padding: 18px 22px; }
.pg-passos { margin-top: 6px; }
.pg-passos li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pg-passos i { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 1.5px solid var(--line-2); }
.pg-passos span { flex: 1; }
.pg-passos em { flex: none; font-style: normal; font-size: 12px; color: var(--soft); padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.pg-sozinho { margin-top: 8mm; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--soft); }
.pg-sozinho b { color: var(--text); }
.pg-ajuda { display: grid; gap: 8px; margin-top: 8mm; padding: 12px 16px; border-radius: 12px; background: rgba(79, 141, 255, .07); border: 1px solid rgba(157, 188, 255, .16); color: var(--soft); }
.pg-ajuda p b { color: var(--ice); }
.pg-ajuda a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; }
.pg-ajuda a svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.pg-plano { display: grid; gap: 10px; margin-top: 12px; }
.pg-plano li { display: flex; gap: 14px; align-items: flex-start; }
.pg-plano b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); font: 600 14px/1 var(--display); color: var(--ice); }
.pg-plano p, .pg-bons p { margin-top: 2px; color: var(--soft); }
.pg-bons { display: grid; gap: 10px; margin-top: 12px; }
.pg-bons li { display: flex; gap: 12px; align-items: flex-start; }
.pg-bons svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); fill: none; stroke: var(--ok); stroke-width: 2; }
.pg-bons h4 { color: var(--text); font-size: 14px; }
.pg-convite { margin-top: 9mm; padding: 20px 22px; border-radius: 18px; background: radial-gradient(80% 90% at 100% 0%, rgba(47, 107, 255, .26), transparent 62%), #080b15; border: 1px solid rgba(120, 165, 255, .4); }
.pg-convite h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.pg-convite p { margin-top: 8px; color: var(--soft); }
.pg-link a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* texto longo: letra um pouco menor para caber na página */
.pg--compacta { font-size: 12px; line-height: 1.5; }
.pg--prob.pg--compacta { font-size: 14px; }
.pg--compacta .pg-tit, .pg--compacta .pg-h4 { margin-top: 6mm; }
.pg--compacta .pg-passos li { padding: 8px 0; }

/* ───────── celular e tablet ───────── */
@media (max-width: 900px) {
  .dg-inicio__title { font-size: 48px; }
  .dg-passos { grid-template-columns: 1fr; }
  .dg-abre { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .dg-abre__txt { justify-self: stretch; text-align: left; }
  .dg-ofertas, .dg-convite { grid-template-columns: 1fr; }
  .dg-plano { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .dg-plano::before { content: none; }
  .dg-bons { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dg-inicio__title { font-size: 40px; }
  .dg-inicio__sub { font-size: 16px; }
  .dg-q__title { font-size: 28px; }
  .dg-op__txt { font-size: 16px; }
  .dg-abre__txt h1 { font-size: 26px; }
  .dg-gauge { width: 168px; }
  .dg-gauge__num b { font-size: 52px; }
  .dg-bloco > h2 { font-size: 24px; }
  .dg-nota { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .dg-nota__bar { grid-column: 1 / -1; grid-row: 2; }
  .dg-nota .dg-faixa { display: none; }
  .dg-prob__head h3 { font-size: 20px; }
  .dg-sec--dupla { grid-template-columns: 1fr; gap: 0; }
  .dg-sec--dupla .dg-sec + .dg-sec { margin-top: 20px; }
  .dg-plano { grid-template-columns: 1fr; }
  .dg-convite h2 { font-size: 26px; }
  .dg-preco b { font-size: 52px; }
  .dg-oferta--sec .dg-preco b { font-size: 40px; }
  .dg-teclas { display: none; }
}

/* "reduzir movimento": troca os deslizes por um esmaecer curto */
@media (prefers-reduced-motion: reduce) {
  .dg-in, .dg-q__body.is-in, .dg-q__body.is-back { animation: dg-fade .3s ease both; animation-delay: 0s; }
  .dg-op.is-picked { animation: none; }
}

/* aparece ao chegar na tela (o js põe .is-vis); fica para o que está abaixo da dobra no relatório */
.dg-rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.dg-rv.is-vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dg-rv { transform: none; transition: opacity .3s ease; } }
