/* ============================================================
   nTop — Inspection Tools Framework
   Page-scoped DARK theme. Loaded AFTER style.css.
   nTop's dark UI screenshots & videos blend into the page.
   ============================================================ */

/* ---------- Dark palette (redefine shared vars) ---------- */
:root {
  --ink: #f4f5f7;              /* near-white headings */
  --body-text: #e8e8e8;       /* light body text */
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.1);
  --bg: #262626;              /* match panel-configurations.svg bg */
  --panel: #2e2e2e;           /* slightly lighter dark panel */
  --accent: #ff6b47;          /* keep orange accent */
}

body {
  background: var(--bg);
  color: var(--body-text);
}

/* ---------- Hero band: header + hero share a distinct shade so the
   colour "fills the top" like the light case studies, reading as a
   hero band against the darker #262626 content below ---------- */
.site-header,
.cs-hero {
  background: #1d1d1d;
}

/* 1px divider to sharpen the band → content transition */
.cs-hero {
  border-bottom: 1px solid #333;
}

/* ---------- Media: remove light borders so dark art blends ---------- */
.media-block video,
.media-block img,
.media-pair video,
.media-pair img {
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* dark screenshots/video blend fully — no border, but keep shared 10px radius */
.media-block.bare video,
.media-block.bare img {
  border: none;
  border-radius: 10px;
}

/* before/after panels keep a dark fill (override the white in style.css) */
.media-pair.equal video,
.media-pair.equal img {
  background: #2e2e2e;
}

/* ---------- The System: panel-configurations.svg as a full-width band ---------- */
.ntop-diagram {
  background: #1d1d1d;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 44px;
  padding: 48px 24px;
}

.ntop-diagram img {
  display: block;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  border: none;
}

/* ---------- 2x2 grid of result screenshots ---------- */
.ntop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.ntop-grid img,
.ntop-grid video {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Two clips sized to equal heights so they read as matching cards */
.ntop-grid.cols-2-equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ntop-grid.cols-2-equal video {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 760px) {
  .ntop-grid,
  .ntop-grid.cols-2-equal { grid-template-columns: 1fr; }
}

/* ---------- Hero laptop with the field viewer playing in-screen ---------- */
.hero-laptop {
  position: relative;
  margin-top: 24px;
  margin-bottom: -8px;
}

/* The laptop is trapezoidal (screen ~80% width, base ~98%). The source PNG is
   cropped just below the base to drop the long drop-shadow, so the laptop reads
   bigger in the same column. A gentle bottom fade softens the cropped edge. */
.cs-hero .hero-laptop { max-width: 960px; }

.hero-laptop > img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 94%, transparent 100%);
}

.hero-laptop .hero-screen {
  position: absolute;
  left: 31.4%;
  top: 14.89%;
  width: 39.4%;
  height: 61.49%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Audit — three problems side by side ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  margin-top: 32px;
}

.problem-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.problem-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.problem-grid figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 760px) {
  .problem-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Exploration — options comparison matrix ---------- */
.compare-block {
  margin-top: 32px;
}

.compare-block img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* ---------- Stat numbers read white on the dark panel ---------- */
.stat-row .stat .num {
  color: #fff;
}

/* ---------- Full-case-study label reads light-grey on dark ---------- */
.full-cs-note .cs-label {
  color: var(--muted);
}

/* ---------- Footer divider legible on dark ---------- */
.site-footer {
  border-top: 1px solid var(--line);
}

/* ============================================================
   Deck-informed modules (research, audit, insight, statement
   dividers, before/after labels, impact). Dark-theme only.
   ============================================================ */

/* Body copy spans the full content width so short paragraphs stay 1–2 lines */
.cs p { max-width: none; }

/* Full-bleed statement divider between phases */
.cs-statement {
  background: #1d1d1d;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 112px;
  padding: 88px 24px;
  text-align: center;
}

.cs-statement .cs-label { margin-bottom: 16px; }

.cs-statement h2 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 400;
}

/* Research — compact grid showing the growing breadth of inspection needs */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  margin-top: 40px;
}

.scenario-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.scenario-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.scenario-grid figcaption {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Audit — three findings, each an image with a title + subtitle */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 44px;
}

.audit-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.audit-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.audit-card h3 {
  font-size: 15px;
  font-weight: 400;
  color: var(--body-text);
  text-align: center;
  margin: 16px 0 8px;
}

.audit-card p {
  font-size: 15px;
  color: var(--muted);
  max-width: none;
  margin: 0;
}

@media (max-width: 760px) {
  .audit-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Before/After pair — captions under each clip */
.pair-label {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

.pair-label strong { color: var(--ink); font-weight: 500; }

/* Impact note under the results metrics — kept to a softer measure */
.cs .impact-note {
  margin-top: 28px;
  font-size: 16px;
  color: var(--muted);
  max-width: 700px;
}

/* Results — panel-usage chart + user quotes (dark theme) */
.usage-figure {
  margin: 32px 0 0;
  background: #1d1d1d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px 18px;
}

.usage-figure img { display: block; width: 100%; height: auto; }

.usage-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

.usage-figure figcaption strong {
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
}

.quote-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.quote-row .quote-card {
  padding: 0;
}

.quote-row .quote-card em { font-style: italic; }

@media (max-width: 720px) {
  .quote-row { grid-template-columns: 1fr; }
}
