/* ============================================================================
   Diagnóstico Oráculo · estilos da página (mobile first).
   Usa só os tokens de site.css e atmos.css. Sem fontes nem bibliotecas externas.
   ========================================================================== */
[hidden] { display: none !important; }
:root { --dg-spring: var(--ease-spring, cubic-bezier(.34, 1.45, .64, 1)); --dg-expo: var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1)); }

.dg-main { position: relative; z-index: 1; min-height: calc(100svh - 72px); padding: calc(var(--topbar-h) + 22px) 0 56px; overflow-x: clip; }
.dg-wrap { position: relative; z-index: 1; width: min(1040px, var(--page-w)); margin-inline: auto; }
.dg-panel { min-width: 0; }
.dg-title:focus, .dg-qtitle:focus, .dg-res__title:focus { outline: none; }

/* ------------------------------------------------------------ portal ----- */
.dg-portal { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transition: opacity 1.2s var(--dg-expo); }
[data-dg-stage="result"] .dg-portal { opacity: .55; }
.dg-portal .glow {
  position: absolute; left: 50%; top: 36%; width: min(140vw, 1180px); aspect-ratio: 1.4; translate: -50% -50%;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), .14) 0%, rgba(var(--accent-rgb), .06) 34%, transparent 68%);
  opacity: calc(.72 + var(--dg-p, 0) * .28); animation: dg-breathe 9s ease-in-out infinite;
}
.dg-portal .rings { position: absolute; inset: 0; transform-origin: 50% 36%; transform: rotate(calc(var(--dg-p, 0) * 150deg)); transition: transform 1.4s var(--dg-spring); }
.dg-portal .ring { position: absolute; left: 50%; top: 36%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; border: 1px solid rgba(var(--accent-rgb), .12); }
.dg-portal .r1 { width: min(150vw, 1000px); border-style: dashed; animation: dg-spin 90s linear infinite; }
.dg-portal .r2 {
  width: min(112vw, 760px); border: 0; animation: dg-spin 46s linear infinite;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 210deg, rgba(var(--accent-rgb), .1) 280deg, rgba(var(--accent-rgb), .42) 352deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.dg-portal .r3 { width: min(76vw, 460px); border-style: dotted; border-color: rgba(var(--accent-rgb), .16); animation: dg-spin 60s linear infinite reverse; }
@keyframes dg-breathe { 0%, 100% { scale: .96; } 50% { scale: 1.04; } }
@keyframes dg-spin { to { transform: rotate(360deg); } }
.fx-lite .dg-portal .ring, .fx-lite .dg-portal .glow { animation: none; }

/* ------------------------------------------------------- entradas -------- */
.dg-in-f { animation: dg-in-f .62s var(--dg-spring) both; }
.dg-in-b { animation: dg-in-b .62s var(--dg-spring) both; }
@keyframes dg-in-f { from { opacity: 0; transform: translate3d(36px, 0, 0) scale(.985); } }
@keyframes dg-in-b { from { opacity: 0; transform: translate3d(-36px, 0, 0) scale(.985); } }
@keyframes dg-rise { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.98); } }
.dg-leave { opacity: 0; transform: translate3d(-18px, 0, 0); transition: opacity .14s ease-in, transform .14s ease-in; }

/* ------------------------------------------------------------- intro ----- */
.dg-intro { display: grid; justify-items: start; }
.dg-intro .eyebrow { margin-bottom: 16px; }
.dg-intro .eyebrow::after { display: none; }
.dg-title { margin: 0; font-size: clamp(21px, calc((100vw - 32px) / 13.9), 44px); font-weight: 600; letter-spacing: -.06em; line-height: 1.07; text-wrap: balance; }
.dg-sub { margin-top: 16px; font-size: 16px; line-height: 1.55; }
.dg-get { list-style: none; display: grid; gap: 8px; width: 100%; margin: 22px 0 24px; padding: 0; }
.dg-get li { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 14px; color: var(--soft); font-size: 14px; line-height: 1.4; }
.dg-get b { color: var(--white); font-weight: 600; }
.dg-ico { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 11px; background: rgba(var(--accent-rgb), .06); color: var(--accent); }
.dg-ico svg { width: 20px; height: 20px; }
.dg-start { width: 100%; }
.dg-note { margin: 14px 0 0; }

/* ------------------------------------------------------- cartão de passo -- */
.dg-q, .dg-lead { width: min(100%, 720px); margin-inline: auto; padding: 16px 16px 18px; }
.dg-lead { width: min(100%, 940px); }
.dg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dg-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px 8px 6px; border: 1px solid var(--line); border-radius: 12px; background: transparent;
  color: var(--soft); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, color .2s;
}
.dg-back svg { width: 18px; height: 18px; }
.dg-back:hover { border-color: rgba(var(--accent-rgb), .45); color: var(--accent); }
.dg-prog { margin: 0; min-width: 0; text-align: right; color: #a8b19e; letter-spacing: .09em; }
.dg-prog b { color: var(--accent); font-weight: 500; }
.dg-bar { height: 4px; margin: 12px 0 0; overflow: hidden; border-radius: 4px; background: rgba(223, 234, 213, .1); }
.dg-bar i { display: block; width: 100%; height: 100%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .5); transform-origin: left; transform: scaleX(.11); transition: transform .8s var(--dg-spring); }
.dg-bar.is-full i { transform: none; }
.dg-stage { padding-top: 24px; }
.dg-qtitle { margin: 0; font-size: clamp(23px, 6.3vw, 34px); font-weight: 600; letter-spacing: -.04em; line-height: 1.14; text-wrap: balance; }
.dg-qhint { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 56ch; }
.dg-resume, .dg-pre { margin: 0 0 12px; color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.dg-pre { margin: 14px 0 0; color: var(--muted); text-transform: none; letter-spacing: .02em; font-size: 12px; }
.dg-opts { display: grid; gap: 10px; margin-top: 20px; }
.dg-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 16px 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(8, 9, 9, .55); color: var(--white);
  font-size: 16px; font-weight: 560; letter-spacing: -.015em; line-height: 1.3; text-align: left;
  transition: border-color .2s, background .2s, box-shadow .3s, transform .5s var(--dg-spring);
}
.dg-opt:focus-visible { outline-offset: 2px; }
.dg-opt__key {
  flex: 0 0 32px; display: grid; place-items: center; height: 32px; border: 1px solid var(--line-strong); border-radius: 10px;
  color: #a8b19e; font-family: var(--mono); font-size: 12px; transition: background .2s, color .2s, border-color .2s;
}
.dg-opt__txt { min-width: 0; overflow-wrap: anywhere; }
@media (hover: hover) { .dg-opt:hover { border-color: rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .04); } }
.dg-opt:active { transform: scale(.985); }
.dg-opt[aria-checked="true"] { border-color: var(--accent); background: rgba(var(--accent-rgb), .09); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .08); }
.dg-opt[aria-checked="true"] .dg-opt__key { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.dg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.dg-keys { display: none; margin: 0; align-items: center; gap: 6px; color: var(--dim); font-family: var(--mono); font-size: 10px; }
.dg-next { margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .dg-keys { display: flex; } }

/* ------------------------------------------------------- captura do lead -- */
.dg-lead__grid { display: grid; gap: 20px; padding-top: 22px; }
.dg-lead__head { display: grid; gap: 12px; justify-items: start; align-content: start; }
.dg-lead__head .dg-qtitle { font-size: clamp(22px, 6vw, 32px); }
.dg-lead__head .body { font-size: 14px; }
.dg-locked { display: none; list-style: none; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; }
.dg-locked li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px dashed var(--line-strong); border-radius: 999px; color: #a8b19e; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.dg-locked svg { width: 13px; height: 13px; color: var(--accent); }
.lead-form { display: grid; gap: 12px; }
.lead-form .field { gap: 8px; }
.lead-form .field-error { min-height: 0; }
.lead-form .field-error:not(:empty) { min-height: 16px; }
.consent .check { padding: 4px 0; font-size: 12px; }
.consent .check a { color: var(--accent); text-underline-offset: 3px; }
.consent .field-error { margin-top: 2px; }
.check input[aria-invalid="true"] { outline: 2px solid #f0a58a; outline-offset: 2px; }
.form-alert { margin: 0; padding: 12px 14px; border: 1px solid rgba(240, 165, 138, .4); border-radius: 12px; color: #f0a58a; font-size: 13px; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .arrow-box svg { display: none; }
.btn.is-loading .arrow-box::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(22, 32, 14, .25); border-top-color: var(--accent-ink); animation: dg-spin .7s linear infinite; }
.link-btn {
  min-height: 44px; padding: 8px 2px; border: 0; background: none; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: underline; text-decoration-color: rgba(145, 151, 143, .4); text-underline-offset: 4px;
}
.link-btn:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* --------------------------------------------------------- resultado ----- */
.dg-res__head .eyebrow { margin-bottom: 12px; }
.dg-res__head .eyebrow::after { display: none; }
.dg-res__title { font-size: clamp(26px, 7.4vw, 46px); letter-spacing: -.05em; line-height: 1.08; }
.dg-res__grid { display: grid; gap: 14px; margin-top: 22px; }
.dg-res__side { display: grid; gap: 14px; min-width: 0; }
.dg-gauge-card { display: grid; justify-items: center; padding: 26px 18px 22px; text-align: center; animation: dg-rise .8s var(--dg-spring) both; }
.dg-gauge { position: relative; width: min(236px, 64vw); aspect-ratio: 1; }
.dg-gauge svg { width: 100%; height: 100%; overflow: visible; }
.dg-gauge__track { fill: none; stroke: rgba(223, 234, 213, .1); stroke-width: 12; }
.dg-gauge__arc { fill: none; stroke: url(#dg-grad); stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), .45)); }
.dg-gauge__ticks line { stroke: #111312; stroke-width: 3; }
.dg-gauge__n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dg-gauge__n b { font-size: clamp(54px, 16vw, 66px); font-weight: 600; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.dg-gauge__n span { margin-top: 6px; color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.dg-level { margin: 18px 0 0; color: var(--accent); font-size: clamp(22px, 6vw, 28px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.dg-level__line { margin: 10px 0 0; max-width: 40ch; color: #b4baae; font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.dg-eras { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 22px 0 0; padding: 0; }
.dg-eras li { display: grid; gap: 5px; justify-items: start; text-align: left; color: var(--dim); }
.dg-eras__bar { width: 100%; height: 3px; border-radius: 3px; background: var(--line-strong); }
.dg-eras b { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.dg-eras small { font-family: var(--mono); font-size: 9px; }
.dg-eras .is-on { color: var(--accent); }
.dg-eras .is-on .dg-eras__bar { background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .45); }
.dg-hours { padding: 18px 20px; animation: dg-rise .8s var(--dg-spring) .12s both; }
.dg-hours .label { margin: 0; }
.dg-hours__v { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.dg-hours__v b { color: var(--white); font-size: clamp(34px, 9vw, 44px); font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.dg-hours__n { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.dg-res__main { min-width: 0; }
.dg-res__main .label { margin: 8px 0 0; }
.dg-opps__title { margin: 6px 0 0; font-size: clamp(20px, 5.4vw, 26px); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.dg-opps { list-style: none; display: grid; gap: 12px; margin: 16px 0 0; padding: 0; }
.dg-opp { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 18px 16px; animation: dg-rise .8s var(--dg-spring) both; animation-delay: calc(var(--d, 0) * 1ms); }
.dg-opp__n { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 11px; background: rgba(var(--accent-rgb), .06); color: var(--accent); font-family: var(--mono); font-size: 13px; }
.dg-opp h4 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.dg-opp__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.dg-opp__chips .chip { gap: 7px; }
.dg-pips { display: inline-flex; gap: 3px; }
.dg-pips u { display: block; width: 5px; height: 5px; border-radius: 50%; background: rgba(223, 234, 213, .22); text-decoration: none; }
.dg-pips u.on { background: currentColor; }
.dg-opp__why { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dg-opp__why b { color: var(--soft); font-weight: 600; }
.dg-opps__note { margin: 6px 0 0; color: var(--dim); font-size: 12px; line-height: 1.55; text-align: center; }
.dg-cta { position: sticky; bottom: 0; z-index: 6; margin: -10px -16px 0; padding: 34px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(8, 9, 9, .97) 55%, rgba(8, 9, 9, 0)); pointer-events: none; }
.dg-cta > * { pointer-events: auto; }
.dg-cta2 { display: grid; gap: 8px; justify-items: center; padding-top: 4px; text-align: center; }
.dg-cta2 .btn { width: 100%; }
.dg-cta__note { margin: 6px 0 0; color: var(--dim); font-size: 12px; line-height: 1.5; }

/* --------------------------------------------------------- telas médias --- */
@media (min-width: 600px) {
  .dg-main { padding-top: calc(var(--topbar-h) + 34px); }
  .dg-q, .dg-lead { padding: 24px 30px 28px; }
  .dg-sub { font-size: 17px; }
  .dg-opt { min-height: 64px; padding-left: 14px; }
  .dg-start { width: auto; }
  .dg-cta2 .btn { width: auto; }
  .dg-opp { padding: 15px 20px; }
}
@media (min-width: 700px) {
  .dg-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .dg-lead__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding-top: 28px; }
  .dg-locked { display: flex; }
  .dg-lead__head .body { font-size: 15px; }
}
@media (min-width: 900px) {
  .dg-main { padding-top: calc(var(--topbar-h) + clamp(24px, 4vh, 64px)); }
  .dg-intro { justify-items: center; text-align: center; }
  .dg-intro .eyebrow::after { display: block; }
  .dg-title { font-size: clamp(40px, 4.6vw, 64px); max-width: 980px; margin-inline: auto; }
  .dg-sub { max-width: 54ch; margin-top: 20px; font-size: 19px; }
  .dg-get { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 38px 0 34px; }
  .dg-get li { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; font-size: 15px; text-align: left; }
  .dg-res__head { text-align: left; }
  .dg-res__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; margin-top: 28px; }
  .dg-res__side { position: sticky; top: calc(var(--topbar-h) + 18px); }
  .dg-res__main .label { margin-top: 4px; }
  .dg-cta { position: static; margin: 18px 0 0; padding: 0; background: none; }
  .dg-opps__note { margin-top: 12px; text-align: left; }
  .dg-cta__main { width: auto; min-width: 440px; }
  .dg-cta, .dg-cta2 { justify-items: start; text-align: left; }
  .dg-cta2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 14px; }
  .dg-cta2 .btn { order: 0; }
  .dg-cta__note { order: 1; margin: 0; }
  .dg-cta2 .link-btn { order: 2; }
}

/* --------------------------------------------------- movimento reduzido --- */
.motion-paused .dg-panel, .motion-paused .dg-stage, .motion-paused .dg-gauge-card, .motion-paused .dg-hours, .motion-paused .dg-opp,
.motion-paused .dg-portal .glow, .motion-paused .dg-portal .ring, .motion-paused .dg-opt, .motion-paused .dg-bar i, .motion-paused .dg-portal .rings,
.motion-paused .dg-gauge__arc { animation: none !important; transition: none !important; }
.motion-paused .dg-leave { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .dg-leave, .dg-bar i, .dg-portal .rings, .dg-opt { transition: none !important; }
}
