/* =============================================
   MinDet - Emago, Elchemia, Our Technology and Privacy Policy pages,
   in the home page's dark style.
   Loaded after emago-story.css, which supplies the colour tokens, the nav, the buttons
   (.btn-story), the product block (.next-section) with the Elchemia drawing, and the
   closing call to action (.story-end).
   ============================================= */

/* ── Hero ───────────────────────────────────── */
.pg-hero {
  background: radial-gradient(ellipse 70% 60% at 70% 0%, rgba(57, 135, 229, 0.12), transparent 70%), var(--st-bg);
}
.pg-hero.next-section { padding-bottom: 10vh; }
.pg-hero .next-copy p + p { margin-top: 14px; }

/* the product photo beside the hero copy */
.pg-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--st-line-2);
}

/* a hero with no figure (Technology, Privacy) */
.pg-intro {
  padding: calc(var(--st-nav) + 10vh) clamp(20px, 6vw, 96px) 7vh;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(57, 135, 229, 0.12), transparent 70%), var(--st-bg);
}
.pg-intro .pg-wrap > * { max-width: 880px; }
.pg-intro h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--st-text);
  margin: 14px 0 18px;
}
.pg-intro .lede {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--st-text-2);
  margin: 0;
  max-width: 62ch;
}
.pg-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pg-toc a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--st-line-2);
  color: var(--st-text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}
.pg-toc a:hover { color: var(--st-text); border-color: rgba(127, 211, 234, 0.5); }

/* ── Sections ───────────────────────────────── */
.pg-section {
  padding: 11vh clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--st-line);
  background: var(--st-bg);
}
.pg-section.alt { background: linear-gradient(180deg, var(--st-bg) 0%, var(--st-bg-2) 50%, var(--st-bg) 100%); }
.pg-wrap { max-width: 1240px; margin: 0 auto; }

.pg-eyebrow {
  display: block;
  font: 600 13px/1 'DM Sans', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--st-cyan);
}
.pg-head { max-width: 760px; margin-bottom: 40px; }
.pg-head h2,
.pg-copy h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--st-text);
  margin: 14px 0 14px;
}
.pg-head p,
.pg-copy p {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--st-text-2);
  margin: 0;
}
.pg-head p + p,
.pg-copy p + p { margin-top: 14px; }
.pg-copy strong, .pg-head strong { color: var(--st-text); font-weight: 600; }

/* text beside a figure */
.pg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.pg-split + .pg-split, .pg-split + .pg-figure, .pg-figure + .pg-split { margin-top: clamp(40px, 7vh, 72px); }

/* ── Figures ────────────────────────────────── */
.pg-figure { margin: 0; }
.pg-figure figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--st-muted); }
.pg-figure > img { display: block; width: 100%; height: auto; }
/* charts and screenshots drawn on white keep a light sheet, framed like a screen */
.pg-sheet {
  padding: clamp(8px, 1.2vw, 16px);
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--st-line-2);
}
.pg-sheet img { display: block; width: 100%; height: auto; border-radius: 6px; }

/* software screens, one under another so the text in them stays legible */
.pg-shots { display: grid; gap: clamp(32px, 5vh, 52px); max-width: 960px; }   /* the summary screen is 890 px wide */
.pg-shots h3 {
  font: 600 16px/1.3 'DM Sans', sans-serif;
  text-transform: none;
  color: var(--st-text);
  margin: 0 0 4px;
}
.pg-shots .pg-figure > p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--st-text-2); max-width: 72ch; }

/* ── Cards: steps, use cases ────────────────── */
.pg-cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 16px;
}
.pg-card {
  padding: 22px 22px 24px;
  border-radius: 14px;
  background: var(--st-surface);
  border: 1px solid var(--st-line-2);
  transition: border-color 0.25s;
}
.pg-card:hover { border-color: rgba(127, 211, 234, 0.35); }
.pg-card .num {
  display: block;
  font: 600 13px/1 'DM Sans', sans-serif;
  letter-spacing: 0.14em;
  color: var(--st-cyan);
}
.pg-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  text-transform: none;
  color: var(--st-text);
  margin: 14px 0 8px;
}
.pg-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--st-text-2); }
.pg-more { margin-top: 24px; }

/* ── Specs: who it's for and what it measures ── */
.pg-specs {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 18px 32px;
  margin: 0 0 40px;
  padding: 24px 26px;
  border-radius: 14px;
  background: var(--st-surface);
  border: 1px solid var(--st-line-2);
}
.pg-specs dt {
  font: 600 12.5px/1.9 'DM Sans', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.pg-specs dd { margin: 0; color: var(--st-text); font-size: 16px; line-height: 1.6; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chips span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(127, 211, 234, 0.35);
  background: rgba(127, 211, 234, 0.06);
  color: var(--st-text);
  font-size: 14px;
  line-height: 1.4;
}

/* ── Key features ───────────────────────────── */
.pg-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pg-features li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--st-surface);
  border: 1px solid var(--st-line);
  color: var(--st-text);
  font-size: 15.5px;
  line-height: 1.45;
}
.pg-features svg {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--st-cyan);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pg-features a { color: var(--st-cyan); }
@media (min-width: 1200px) {
  .pg-features.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── The existing-methods table (Technology) ─── */
.pg-table-wrap {
  border-radius: 14px;
  border: 1px solid var(--st-line-2);
  background: var(--st-surface);
  overflow: hidden;
}
.pg-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.pg-table caption {
  caption-side: bottom;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--st-muted);
  border-top: 1px solid var(--st-line);
}
.pg-table th, .pg-table td { padding: 9px 16px; text-align: left; vertical-align: middle; }
.pg-table thead th {
  font: 600 12px/1.4 'DM Sans', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-muted);
  border-bottom: 1px solid var(--st-line-2);
}
.pg-table tbody th { color: var(--st-text); font-weight: 600; }
.pg-table td { color: var(--st-text-2); }
.pg-table td:last-child { text-align: right; white-space: nowrap; }
.pg-table tbody tr.grp > * { border-top: 1px solid var(--st-line-2); }
.pg-table tbody tr:first-child > * { border-top: 0; }

/* ── Reference ──────────────────────────────── */
.pg-ref {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 2px solid var(--st-cyan);
  background: var(--st-surface);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--st-text-2);
}
.pg-ref a { color: var(--st-cyan); word-break: break-word; }

/* ── Long-form text (Privacy Policy) ────────── */
.pg-prose { max-width: 760px; margin: 0 auto; }
.pg-prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.2;
  text-transform: none;
  color: var(--st-text);
  margin: 44px 0 12px;
}
.pg-prose p, .pg-prose li { font-size: 16.5px; line-height: 1.7; color: var(--st-text-2); }
.pg-prose p { margin: 0 0 14px; }
.pg-prose ul { margin: 0 0 14px; padding-left: 1.3em; }
.pg-prose li + li { margin-top: 6px; }
.pg-prose a { color: var(--st-cyan); }

/* The closing call to action reuses the home page's .story-end */
.pg-end { border-top: 1px solid var(--st-line); }

/* ── Small screens ──────────────────────────── */
@media (max-width: 991.98px) {
  .pg-split { grid-template-columns: 1fr; }
  .pg-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .pg-section { padding: 8vh 20px; }
  .pg-intro { padding: calc(var(--st-nav) + 7vh) 20px 5vh; }
  .pg-head { margin-bottom: 28px; }
  .pg-cards, .pg-features { grid-template-columns: 1fr; }
  .pg-specs { grid-template-columns: 1fr; gap: 6px; padding: 18px 18px 20px; }
  .pg-specs dd + dt { margin-top: 12px; }
  .pg-table { font-size: 14px; }
  .pg-table th, .pg-table td { padding: 8px 10px; }
}
