/* /the-diagnostic/: the chat first, then three short answer blocks and a FAQ.
   Everything else reuses home.css and tokens.css. */

.dg-trust { margin: 32px 0 0; }

/* ── The test: answer on the left, what is checked live on the right ── */
.dg-def { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; max-width: 1120px; }
.dg-def .lx-h2 { margin: 20px 0 20px; }
.dg-def-answer { max-width: 560px; font-size: 18px; line-height: 28px; }
.dg-live { padding: 28px 32px; }
.dg-live-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--fg); }
.dg-live-title i { width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); box-shadow: 0 0 8px var(--accent-soft), 0 0 16px var(--accent); }
.dg-live ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dg-live li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-1); font-size: 15px; line-height: 22px; color: var(--fg); }
.dg-live li:first-child { border-top: 0; }
.dg-live li .lx-icon { width: 18px; height: 18px; stroke: var(--accent-soft); }

/* ── The audit: six checks in a 3x2 grid ── */
.dg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1120px; margin: 0 auto; }
.dg-gate { padding: 24px; }
.dg-gate-n { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; line-height: 16px; letter-spacing: 0.06em; color: var(--accent-soft); }
.dg-gate h3 { margin: 0 0 6px; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.dg-gate p { margin: 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.dg-note { max-width: 760px; margin: 32px auto 0; text-align: center; font-size: 15px; line-height: 24px; color: var(--muted); text-wrap: pretty; }

/* ── Issues: linked tiles ── */
.dg-issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1120px; margin: 0 auto; }
.dg-issue { display: block; padding: 24px 56px 24px 24px; color: inherit; transition: background 0.15s, box-shadow 0.15s; }
.dg-issue:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-2); }
.dg-issue h3 { margin: 0 0 6px; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.dg-issue p { margin: 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.dg-issue-arrow { position: absolute; top: 24px; right: 24px; width: 18px; height: 18px; stroke: var(--muted); transition: transform 0.15s, stroke 0.15s; }
.dg-issue:hover .dg-issue-arrow { transform: translateX(3px); stroke: var(--accent-soft); }

/* ── FAQ + closing line ── */
.dg-faq-title { text-align: center; margin-bottom: 40px; }
.dg-close { margin: 40px 0 0; text-align: center; font-size: 15px; color: var(--muted); }

@media (max-width: 1100px) {
  .dg-grid, .dg-issues { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .dg-def { grid-template-columns: 1fr; gap: 32px; }
  .dg-def-answer { font-size: 17px; line-height: 26px; }
}
@media (max-width: 600px) {
  .dg-grid, .dg-issues { grid-template-columns: 1fr; }
  .dg-live { padding: 22px 20px; }
  /* Phones: the six checks read as one grouped list, number beside each item. */
  .dg-grid { gap: 0; border-radius: var(--r-tile); background: var(--surface-1); box-shadow: inset 0 0 0 1px rgba(250,250,250,0.04); overflow: hidden; }
  .dg-gate { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; padding: 16px 18px; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--border-1); }
  .dg-gate:first-child { border-top: 0; }
  .dg-gate-n { grid-row: span 2; margin: 3px 0 0; }
  .dg-gate h3 { font-size: 16px; margin-bottom: 2px; }
  .dg-issues { gap: 10px; }
  .dg-issue { padding: 18px 48px 18px 18px; }
  .dg-issue-arrow { top: 20px; right: 18px; }
}
