.detective-app { max-width: 1140px; margin: 1rem auto 5rem; padding-inline: clamp(1rem, 4vw, 3rem); }
.detective-hero { position: relative; isolation: isolate; background: #14151b; color: #fff6ed; border-radius: 1rem; overflow: hidden; }
.detective-intro { position: relative; z-index: 1; box-sizing: border-box; width: 58%; padding: clamp(1.5rem, 4.4vw, 3.6rem); }
.detective-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #14151b 40%, rgba(20,21,27,.96) 46%, rgba(20,21,27,.48) 60%, transparent 77%); }
.detective-platform { display: block; font-size: .95rem; font-weight: 700; line-height: 1.4; letter-spacing: normal; color: #ffab93; margin: 0 0 1rem; }
.detective-app .detective-intro h1 { font-size: clamp(3.3rem, 6vw, 5.6rem); letter-spacing: -.055em; line-height: .96; margin: 0 0 1.4rem; color: inherit; }
.detective-intro h1 em { display: block; color: #ffb098; font-style: normal; }
.detective-lead { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.4; font-weight: 600; margin: 0 0 .75rem; }
.detective-intro > p:not([class]) { color: #e1d7d5; line-height: 1.55; }
.detective-cover { position: absolute; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; object-position: 50% 37%; }
.detective-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.25rem; align-items: center; margin-top: 1.5rem; }
.detective-actions a:not(.detective-install) { color: #ffd8c9; text-underline-offset: .22em; }
.detective-app .detective-install { display: inline-flex; align-items: center; gap: .8rem; padding: .8rem 1.15rem; background: #ffac92; color: #20110e; text-decoration: none; border-radius: .5rem; font-weight: 750; }
.detective-app .detective-facts { font-size: .86rem; line-height: 1.45; color: #e4d6d2; margin: 1rem 0 0; }
.detective-install:hover { filter: brightness(1.08); }
.detective-section { margin-block-start: clamp(2.5rem, 6vw, 4.5rem); scroll-margin-top: 5rem; }
.detective-section h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.14; margin: 0 0 .8rem; }
.detective-section > p, .detective-clue p { max-width: 72ch; line-height: 1.65; }
.detective-file { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.5rem 3rem; align-items: start; padding: clamp(1.25rem, 3vw, 2.6rem); background: #f4ebde; color: #2d2423; border-radius: .8rem; border-top: 4px solid #b9462b; }
.detective-file h2, .detective-file h3 { color: inherit; }
.detective-file .detective-dateline { color: #8f3827; font-size: .85rem; font-weight: 750; margin: 0 0 .7rem; }
.detective-file p { line-height: 1.55; }
.detective-evidence h3 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 .85rem; }
.detective-clue { border-block-end: 1px solid #cdbdb1; }
.detective-clue summary { cursor: pointer; font-weight: 700; padding: .8rem .15rem; }
.detective-clue summary::marker { color: #9e3c27; }
.detective-clue[open] p { margin: 0; padding-bottom: .85rem; }
.detective-clue code { color: #782818; background: #fff8ef; }
.detective-clue p { margin: .75rem 0 0; }
.detective-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); margin-top: 1.35rem; }
.detective-gallery figure { margin: 0; min-width: 0; }
.detective-shot { display: block; background: #17171c; border-radius: .8rem; padding: clamp(.6rem, 1.8vw, 1.3rem); cursor: zoom-in; }
.detective-shot img { display: block; width: 100%; max-width: 240px; height: auto; margin: auto; border-radius: .4rem; }
.detective-gallery figcaption { padding-top: .75rem; line-height: 1.5; }
.detective-gallery strong { display: block; margin-bottom: .25rem; font-size: 1.1rem; }
.detective-academy { color: #fff6ed; padding: clamp(1.5rem, 4vw, 3rem); border-radius: .85rem; background: linear-gradient(90deg, #17171cf5 25%, #17171cd9 60%, #17171c85), url('../images/seo-detective-app/maya-bureau.webp') center 42% / cover; }
.detective-academy h2 { color: inherit; }
.detective-academy > p { max-width: 56ch; }
.detective-viewer { border: 0; background: #18181c; color: #fff; padding: .6rem; border-radius: .7rem; max-width: 95vw; max-height: 96vh; margin: auto; }
.detective-viewer::backdrop { background: rgb(0 0 0 / 78%); }
.detective-viewer form { text-align: right; margin: 0 0 .4rem; }
.detective-viewer button { color: #fff; background: #38383e; border: 0; border-radius: .4rem; padding: .55rem .8rem; cursor: pointer; }
.detective-viewer img { display: block; width: auto; height: auto; max-height: 80vh; max-width: 85vw; }
@media (max-width: 740px) {
  .detective-intro { width: 100%; padding: clamp(9rem, 32vw, 13rem) 1.25rem 1.4rem; }
  .detective-cover { width: 100%; height: 58%; object-position: center 36%; }
  .detective-hero::after { background: linear-gradient(0deg, #14151b 42%, rgba(20,21,27,.98) 49%, rgba(20,21,27,.6) 67%, transparent 91%); }
  .detective-intro h1 .detective-platform { color: white; text-shadow: 0 1px 4px black; margin-bottom: .6rem; }
  .detective-intro h1 em { display: inline; }
  .detective-app .detective-intro h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); margin-bottom: .85rem; }
  .detective-actions { margin-top: 1rem; }
  .detective-file { grid-template-columns: 1fr; gap: .75rem; }
  .detective-gallery { grid-template-columns: 1fr; }
  .detective-gallery figure { display: grid; grid-template-columns: minmax(110px, 44%) 1fr; gap: 1rem; align-items: center; }
}
