/* Isolated styles for the Detect application gallery. */
.detect-usecases { border-top: 1px solid var(--line); background: var(--surface); scroll-margin-top: 90px; }
.detect-usecases-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2.5rem; margin-bottom: 2.75rem; }
.detect-usecases-heading .section-heading { margin: 0; }
.detect-usecases-heading h2 { max-width: 15ch; }
.detect-usecases-heading .lead { font-size: 1rem; }
.detect-usecases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.detect-usecase { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.detect-usecase > img, .detect-comparison-image > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #171a1e; }
.detect-usecase-copy { padding: clamp(1.25rem, 2.5vw, 2rem); }
.detect-usecase-material { color: var(--muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; }
.detect-usecase h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 0.9rem; }
.detect-usecase h3 + p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.75; }
.detect-usecases-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.72rem; max-width: 90ch; }
.detect-comparison-image { position: relative; isolation: isolate; overflow: hidden; }
.detect-comparison-after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); background: rgb(20 8 12 / 8%); pointer-events: none; }
.detect-comparison-after svg { display: block; width: 100%; height: 100%; }
.detect-roi { fill: rgb(255 72 90 / 13%); stroke: #ff6573; stroke-width: 2; vector-effect: non-scaling-stroke; }
.detect-roi--warning { fill: rgb(255 159 67 / 12%); stroke: #ffab58; }
.detect-roi-badge { fill: #2b1118; stroke: #ff6573; stroke-width: 2; }
.detect-roi-label { fill: #ffe5e7; font: 600 28px ui-monospace, monospace; text-anchor: middle; }
.detect-comparison-labels { position: absolute; inset: 12px 12px auto; display: flex; justify-content: space-between; pointer-events: none; }
.detect-comparison-labels span { padding: 5px 8px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 3px; background: rgb(8 13 16 / 80%); color: #fff; font-size: 0.6rem; letter-spacing: 0.09em; }
.detect-comparison-labels span:first-child { color: #ffc5cb; }
.detect-comparison-divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 10px #0008; pointer-events: none; }
.detect-comparison-slider { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.detect-comparison-image:focus-within { outline: 3px solid #cf66d7; outline-offset: -3px; }
.detect-comparison-output { padding: 1rem 1.25rem; background: #191013; color: #f4dfe2; border-bottom: 1px solid var(--line); }
.detect-comparison-output-heading { display: flex; justify-content: space-between; gap: 1rem; color: #d6a7ae; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.detect-comparison-output-heading span { color: #bdadb0; letter-spacing: 0; text-transform: none; }
.detect-comparison-output dl { display: grid; gap: 0.4rem; margin: 0; }
.detect-comparison-output dl > div { display: flex; align-items: baseline; gap: 0.75rem; }
.detect-comparison-output dt { flex-shrink: 0; padding: 1px 5px; border: 1px solid #79414b; border-radius: 3px; color: #ffa5b0; font: 0.65rem/1.6 ui-monospace, monospace; }
.detect-comparison-output dd { margin: 0; overflow-wrap: anywhere; font: 0.75rem/1.7 ui-monospace, monospace; }
@media (max-width: 680px) {
  .detect-usecases-heading { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; }
  .detect-usecases-heading h2 { max-width: none; }
  .detect-usecases-grid { grid-template-columns: 1fr; }
}
