/* Homepage investigation preview; shared theme tokens keep both themes consistent. */
.home-hero { padding: 80px 0 56px; background: radial-gradient(ellipse at 85% 20%, var(--accent-soft), transparent 55%); }
.home-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.home-intro h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 24px; }
.home-intro h1 span { color: var(--accent); }
.home-intro .lead { max-width: 490px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 20px; }
.home-actions .btn { padding: 13px 18px; font-size: .95rem; }
.home-note { color: var(--text-2); font-size: .85rem; }
.case-preview { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.case-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border); gap: 12px; font-size: .8rem; }
.case-top span { font-weight: 600; }
.case-top i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.case-top small, .case-label { color: var(--text-2); font-size: .65rem; letter-spacing: .07em; }
.case-title { padding: 24px 24px 12px; }
.case-title h2 { font-size: 1.65rem; margin-top: 10px; line-height: 1.2; }
.case-evidence { list-style: none; padding: 0 24px; }
.case-evidence li { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.case-evidence li > div { min-width: 0; flex: 1; }
.case-number { font: .75rem var(--mono); color: var(--accent); }
.case-evidence small, .case-finding small { display: block; font-size: .6rem; letter-spacing: .1em; color: var(--text-2); }
.case-evidence strong { display: block; font-size: .85rem; overflow-wrap: anywhere; }
.case-evidence p { font-size: .7rem; color: var(--text-2); margin-top: 3px; }
.case-error { font-size: .65rem; color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); border-radius: 5px; padding: 3px 7px; }
.case-finding { margin: 20px 24px 0; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--accent-soft); }
.case-finding p { font-size: .8rem; margin-top: 4px; }
.case-link { display: flex; justify-content: space-between; padding: 20px 24px; color: var(--accent); font-size: .8rem; font-weight: 600; }
.home-stack { display: flex; flex-wrap: wrap; gap: 20px 28px; justify-content: center; align-items: center; padding-top: 25px; padding-bottom: 35px; border-bottom: 1px solid var(--border); font-size: .8rem; }
.home-stack > span { color: var(--text-2); }
.home-stack b { font-weight: 600; }
.home-section-head { max-width: 700px; margin-bottom: 32px; }
.home-section-head p { color: var(--text-2); margin-top: 16px; }
.investigation-tabs { display: flex; border-bottom: 1px solid var(--border); gap: 12px; }
.investigation-tabs button { background: transparent; color: var(--text-2); font: 600 .9rem var(--font); border: 0; border-bottom: 3px solid transparent; padding: 18px 20px; cursor: pointer; }
.investigation-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.investigation-tabs button:focus-visible, .investigation-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Stacked, not two columns. A 2080px-wide product screenshot in a half-width column renders
   about 394px across, which is the exact complaint the redesign set out to fix -- you can see
   there is a system but you cannot read it. Full container width puts it near 1100px, so the
   histogram, the pattern counts and the templates are legible. The prose is capped instead, since
   a measure wider than ~64 characters is what actually hurts reading. */
.investigation-panel { display: grid; gap: 28px; padding: 40px 0 0; }
.investigation-panel > div:first-child { max-width: 64ch; }
.investigation-panel[hidden] { display: none; }
.investigation-panel h3 { font-size: 1.8rem; }
.investigation-panel > div > p, .home-response > div > p { color: var(--text-2); margin: 18px 0 24px; }
/* A real product screenshot as a panel's media column. min-width:0 because a grid child
   defaults to min-content, which a 2080px-wide image would otherwise push the column out to. */
.panel-media { min-width: 0; }
/* Two ways to show the same evidence. The screenshot is the real product and carries the most
   weight, but it only works where it can be wide enough to read; below 700px it would be ~330px
   across, which is the "you can see there is a system but you cannot read it" problem. So phones
   get the DOM card instead -- same facts, real text, legible at any width. Panel 3's diff has no
   screenshot and uses a plain .evidence-detail, which both branches leave alone. */
.evidence-compact { display: none; }
.evidence-detail, .response-card { min-width: 0; padding: 28px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); }
.evidence-detail > strong { display: block; margin: 12px 0 20px; overflow-wrap: anywhere; }
.evidence-detail > p, .response-card > p { font-size: .8rem; color: var(--text-2); margin: 18px 0 0; }
.evidence-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .8rem; margin-bottom: 20px; }
.error-text { color: var(--red); }
.trace-line { margin: 10px 0; font-size: .7rem; color: var(--text-2); }
.trace-line i { display: block; margin-top: 4px; width: var(--trace-width); height: 10px; background: var(--blue); border-radius: 3px; }
.trace-line .trace-failed { background: var(--red); }
.journey-example { list-style: none; }
.journey-example li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.journey-example li span { color: var(--text-2); font: .75rem var(--mono); }
.example-diff { overflow-x: auto; padding: 16px; background: var(--bg); border-radius: 8px; font-size: .7rem; }
.example-diff span:first-child { color: var(--red); }
.example-diff span:last-child { color: var(--green); }
.home-response { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) {
  .home-hero-grid, .home-response { gap: 32px; }
  .home-actions .btn { white-space: normal; text-align: center; }
}
@media (max-width: 700px) {
  .home-hero { padding: 44px 0 32px; }
  .home-hero-grid, .home-response { grid-template-columns: 1fr; }
  .home-intro h1 { font-size: clamp(2.6rem, 10vw, 3.5rem); }
  .home-actions { flex-direction: column; }
  .home-stack { gap: 14px 20px; }
  .home-stack > span { flex-basis: 100%; text-align: center; }
  .investigation-tabs { gap: 0; }
  .investigation-tabs button { flex: 1; padding: 14px 6px; font-size: .75rem; line-height: 1.6; }
  .investigation-panel { padding-top: 28px; }
  .panel-media { display: none; }
  .evidence-compact { display: block; }
  .evidence-detail, .response-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
