/* ==========================================================================
 * Diagnóstico Inteligente (/diagnostico/), 10/11/2026
 * ======================================================================== */
.dg { --dg-card: #fff; }
.dg-eyebrow { margin: 0 0 14px; font: 600 .82rem/1.3 var(--mono); letter-spacing: .02em; color: #7FB1FF; }
.dg-eyebrow--ink { color: var(--blue); }

/* Hero with the two ways in ------------------------------------------------ */
.dg-hero { position: relative; overflow: hidden; background: #06102A; color: var(--night-text); padding: calc(var(--header-h) + 44px) 0 clamp(56px, 7vw, 96px); }
.dg-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(148,178,230,.13) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.dg-hero::after { content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(0,105,254,.38), transparent 62%); pointer-events: none; }
.dg-hero .container { position: relative; z-index: 1; }
.dg-hero .breadcrumbs, .dg-hero .breadcrumbs a { color: var(--night-muted); }
.dg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 22px; }
.dg-hero__title { margin: 0 0 18px; font-family: var(--display); font-size: clamp(2.3rem, 1.5rem + 3vw, 4.1rem); line-height: 1.02; letter-spacing: -.045em; color: #fff; text-wrap: balance; }
.dg-hero__lead { margin: 0; max-width: 50ch; font-size: var(--step-1); line-height: 1.55; color: rgba(226,234,248,.82); }
.dg-start { display: grid; gap: 14px; }
.dg-choice { appearance: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: 100%; padding: 22px 22px 22px 20px; border: 1px solid rgba(148,178,230,.22); border-radius: 20px; background: rgba(255,255,255,.05); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); backdrop-filter: blur(6px); }
.dg-choice:hover, .dg-choice:focus-visible { background: rgba(255,255,255,.1); border-color: rgba(127,177,255,.6); transform: translateY(-2px); outline: none; }
.dg-choice__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(0,105,254,.2); color: #9CC4FF; }
.dg-choice__icon .icon { width: 26px; height: 26px; }
.dg-choice__text strong { display: block; font-family: var(--display); font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); letter-spacing: -.02em; line-height: 1.2; }
.dg-choice__text span { display: block; margin-top: 4px; font-size: .93rem; color: rgba(226,234,248,.72); line-height: 1.45; }
.dg-choice__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; transition: transform .25s var(--ease); }
.dg-choice:hover .dg-choice__go { transform: translateX(3px); }
.dg-start__note { margin: 4px 0 0; font-size: .86rem; color: var(--night-muted); }

/* App area ---------------------------------------------------------------- */
.dg-app { background: var(--paper-2); padding: clamp(28px, 5vw, 64px) 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.dg-app__inner { max-width: 780px; margin: 0 auto; }
.dg.is-running .dg-hero { padding-bottom: 40px; }
.dg-flow { background: var(--dg-card); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 44px); }
.dg-flow__top { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; margin-bottom: clamp(22px, 4vw, 36px); }
.dg-back, .dg-close, .dg-skip { appearance: none; border: 0; background: none; padding: 8px 4px; font: inherit; font-size: .92rem; color: var(--slate-600); cursor: pointer; }
.dg-back:hover, .dg-skip:hover { color: var(--blue); }
.dg-close { font-size: 1rem; width: 36px; height: 36px; border-radius: 50%; }
.dg-close:hover { background: var(--slate-100); }
.dg-progress { height: 6px; border-radius: 99px; background: var(--slate-100); overflow: hidden; }
.dg-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #4F95FF); transition: width .4s var(--ease); }
.dg-progress__n { font: 500 .8rem var(--mono); color: var(--slate-500); }
.dg-slide { animation: dg-in .35s var(--ease) both; }
@keyframes dg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dg-q { margin: 0 0 10px; font-family: var(--display); font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem); line-height: 1.15; letter-spacing: -.03em; color: var(--ink); outline: none; text-wrap: balance; }
.dg-help { margin: 0 0 18px; color: var(--slate-600); line-height: 1.55; }
.dg-hint { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: #FFF7E6; color: #7A4A00; font-size: .9rem; }
.dg-opts { display: grid; gap: 10px; margin-top: 22px; }
.dg-opts--big { grid-template-columns: 1fr 1fr; }
.dg-opt { appearance: none; position: relative; width: 100%; min-height: 56px; padding: 14px 18px; border: 1.5px solid var(--slate-200); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer; transition: border-color .18s, background-color .18s, transform .18s; }
.dg-opts--big .dg-opt { min-height: 84px; font-family: var(--display); font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.dg-opt:hover { border-color: var(--blue-300); background: #F5F9FF; }
.dg-opt:focus-visible { outline: 3px solid rgba(0,105,254,.35); outline-offset: 2px; }
.dg-opt.is-on { border-color: var(--blue); background: var(--blue-100); }
.dg-opt--check { padding-left: 48px; }
.dg-opt--check::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 1.5px solid var(--slate-400); border-radius: 6px; background: #fff; }
.dg-opt--check.is-on::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.5 3.5L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.dg-opt--unknown { color: var(--slate-600); border-style: dashed; }
.dg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.dg-text { width: 100%; padding: 14px 16px; border: 1.5px solid var(--slate-200); border-radius: 14px; font: inherit; resize: vertical; }
.dg-text:focus, .dg-url__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,105,254,.14); }

/* Slider */
.dg-slider { margin-top: 26px; padding: 22px; border-radius: 16px; background: var(--paper-2); }
.dg-slider__out { display: block; margin-bottom: 14px; font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue); }
.dg-slider.is-off .dg-slider__out { color: var(--slate-500); }
.dg-slider input[type="range"] { width: 100%; height: 32px; accent-color: var(--blue); }
.dg-slider__scale { display: flex; justify-content: space-between; font: .8rem var(--mono); color: var(--slate-500); }

/* URL */
.dg-url { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 22px; }
.dg-url__input { min-height: 56px; padding: 0 18px; border: 1.5px solid var(--slate-200); border-radius: 14px; font: inherit; font-size: 1.05rem; }
.dg-url .btn { min-height: 56px; }
.dg-error { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #FEF3F2; color: #912018; }
.dg-error p { margin: 0 0 10px; }
.dg-error p:last-child { margin: 0; }

/* Working */
.dg-working { padding: 30px 0; text-align: center; }
.dg-spin { display: inline-block; width: 44px; height: 44px; margin-bottom: 18px; border: 4px solid var(--blue-100); border-top-color: var(--blue); border-radius: 50%; animation: dg-spin .9s linear infinite; }
@keyframes dg-spin { to { transform: rotate(360deg); } }

/* Report ------------------------------------------------------------------ */
.dg-rep { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: clamp(22px, 4.5vw, 52px); animation: dg-in .45s var(--ease) both; }
.dg-rep__head h2 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; outline: none; overflow-wrap: anywhere; }
.dg-rep__goal, .dg-rep__scope { margin: 0; color: var(--slate-600); font-size: .95rem; }
.dg-rep__block { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.dg-rep__block h3 { margin: 0 0 12px; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; }
.dg-rep__block p { line-height: 1.65; }
.dg-rep__block--main { padding: 26px; border: 0; border-radius: 18px; background: linear-gradient(180deg, #F2F7FF, #fff); box-shadow: inset 0 0 0 1px #D9E7FF; }
.dg-rep__lead { font-size: 1.06rem; }
.dg-rep__sub { margin: 18px 0 8px; font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); }
.dg-rep__how { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; line-height: 1.55; }
.dg-est { margin: 22px 0 6px; padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-s); }
.dg-est__n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; }
.dg-est__n strong { font-family: var(--display); font-size: 2rem; letter-spacing: -.03em; color: var(--green-ink); }
.dg-est__n span { color: var(--slate-600); }
.dg-est p { margin: 0 0 8px; }
.dg-est details summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.dg-est ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--slate-700); font-size: .94rem; line-height: 1.55; }
.dg-est--none { background: var(--paper-2); box-shadow: none; }
.dg-rep__next, .dg-rep__measure { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.dg-rep__next li { padding: 14px 16px; border-radius: 12px; background: var(--paper-2); }
.dg-rep__next strong { display: block; margin-bottom: 4px; }
.dg-rep__next span { color: var(--slate-700); line-height: 1.55; }
.dg-rep__measure li { padding-left: 22px; position: relative; }
.dg-rep__measure li::before { content: "◦"; position: absolute; left: 4px; color: var(--blue); }
.dg-rep__ai { margin: 26px 0 0; font-size: .84rem; color: var(--slate-500); }
.dg-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.dg-counts li { padding: 6px 12px; border-radius: 99px; background: var(--paper-2); font-size: .88rem; }
.dg-counts strong { font-family: var(--display); }
.dg-counts .is-problema strong { color: var(--danger); }
.dg-counts .is-sugestao strong { color: #B54708; }
.dg-counts .is-ok strong { color: var(--green-ink); }
.dg-prios { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 16px; }
.dg-prios > li { counter-increment: p; position: relative; padding: 18px 18px 16px 58px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-s); }
.dg-prios > li::before { content: counter(p); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 .9rem var(--display); }
.dg-prio__t { margin: 0 0 10px; font-weight: 600; line-height: 1.4; }
.dg-prios dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .95rem; line-height: 1.5; }
.dg-prios dt { font-weight: 600; color: var(--slate-600); }
.dg-prios dd { margin: 0; overflow-wrap: anywhere; }
.dg-badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font: 600 .74rem/1.6 var(--font); vertical-align: 1px; white-space: nowrap; }
.dg-badge--problema { background: #FEE4E2; color: #912018; }
.dg-badge--sugestao { background: #FEF0C7; color: #93370D; }
.dg-badge--ok { background: #DCFAE6; color: #067647; }
.dg-badge--inconclusivo { background: var(--slate-100); color: var(--slate-600); }
.dg-group { border-bottom: 1px solid var(--line); }
.dg-group summary { display: flex; justify-content: space-between; padding: 14px 0; cursor: pointer; font-weight: 600; }
.dg-group summary span { font: .82rem var(--mono); color: var(--slate-500); }
.dg-group ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 12px; }
.dg-group li { font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.dg-ev { color: var(--slate-600); }
.dg-fix { color: var(--ink-2); }
.dg-fix::before { content: "→ "; color: var(--blue); }
.dg-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.dg .btn--lg { min-height: 56px; padding: 14px 26px; font-size: 1.02rem; }
.dg-form { margin-top: 24px; padding: 24px; border-radius: 18px; background: var(--paper-2); }
.dg-form h3 { margin: 0 0 6px; font-family: var(--display); letter-spacing: -.02em; }
.dg-form .field { margin: 0 0 14px; }
.dg-form label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .92rem; }
.dg-form input:not([type="checkbox"]), .dg-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--slate-200); border-radius: 12px; background: #fff; font: inherit; }
.dg-form input:focus, .dg-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,105,254,.14); }
.dg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dg-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; line-height: 1.45; margin: 0 0 10px !important; }
.dg-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.dg-form__err { margin: 6px 0 0; color: var(--danger); font-weight: 500; }

/* Public content ---------------------------------------------------------- */
.dg-example { background: var(--paper); padding: var(--section) 0 calc(var(--section) * .6); }
.dg.is-running .dg-example { padding-top: calc(var(--section) * .7); }
.dg-example__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dg-example h2, .dg-info h2 { margin: 0 0 14px; font-family: var(--display); font-size: var(--step-3); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.dg-example__copy p { color: var(--slate-600); font-size: var(--step-1); line-height: 1.6; }
.dg-sample { margin: 0; padding: 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.dg-sample__tag { margin: 0 0 16px; font: 500 .8rem var(--mono); color: var(--slate-500); }
.dg-sample__h { margin: 0; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.dg-sample__title { margin: 6px 0 10px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.dg-sample__text { margin: 0 0 16px; color: var(--slate-700); line-height: 1.6; }
.dg-sample__est { margin: 0; padding: 14px 16px; border-radius: 12px; background: #ECFDF3; display: grid; gap: 2px; }
.dg-sample__est strong { font-family: var(--display); font-size: 1.5rem; color: var(--green-ink); }
.dg-sample__est span { font-size: .86rem; color: var(--slate-600); }
.dg-sample--site .dg-sample__title { font-size: 1.05rem; }
.dg-info { padding: 0 0 var(--section); }
.dg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.dg-cols h2 { font-size: var(--step-2); }
.dg-cols p, .dg-list { color: var(--slate-700); line-height: 1.65; }
.dg-list { padding-left: 1.1em; display: grid; gap: 8px; }
.dg-steps, .dg-example2, .dg-privacy, .dg-faq, .dg-links { padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.dg-steps h2, .dg-example2 h2, .dg-privacy h2, .dg-faq h2 { font-size: var(--step-2); }
.dg-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
.dg-steps li { counter-increment: s; padding: 22px; border-radius: 16px; background: var(--paper-2); line-height: 1.55; color: var(--slate-700); }
.dg-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .95rem var(--display); }
.dg-steps strong { display: block; color: var(--ink); }
.dg-example2 .dg-sample { max-width: 760px; }
.dg-privacy p { max-width: 75ch; color: var(--slate-700); line-height: 1.65; }
.dg-faq details { max-width: 860px; border-bottom: 1px solid var(--line); }
.dg-faq summary { padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 1.04rem; }
.dg-faq details p { margin: 0 0 18px; color: var(--slate-700); line-height: 1.65; }
.dg-links p { margin: 0; color: var(--slate-600); line-height: 1.9; }

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .dg-hero__grid, .dg-example__grid, .dg-cols { grid-template-columns: 1fr; }
  .dg-steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dg-hero { padding-top: calc(var(--header-h) + 24px); }
  .dg-choice { grid-template-columns: auto 1fr; padding: 18px 16px; gap: 14px; }
  .dg-choice__go { display: none; }
  .dg-choice__icon { width: 44px; height: 44px; }
  .dg-flow, .dg-rep { border-radius: 18px; }
  .dg-flow__top { grid-template-columns: auto 1fr auto; }
  .dg-progress__n { display: none; }
  .dg-opts--big { grid-template-columns: 1fr; }
  .dg-opts--big .dg-opt { min-height: 64px; }
  .dg-url { grid-template-columns: 1fr; }
  .dg-form__row { grid-template-columns: 1fr; }
  .dg-prios > li { padding: 16px 14px 14px 50px; }
  .dg-prios > li::before { left: 12px; }
  .dg-prios dl { grid-template-columns: 1fr; gap: 2px; }
  .dg-prios dd { margin-bottom: 8px; }
  .dg-next .btn { width: 100%; }
  .dg-rep__block--main { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-slide, .dg-rep { animation: none; }
  .dg-choice, .dg-progress span { transition: none; }
}
