/* ============================================================
   Xploratio — shared stylesheet.
   Extracted from index.html (task C2) so the homepage and the
   /services/ pages share one source of truth. Previously this
   lived inline in a <style> block; four copies would have drifted.
   Served gzipped and cached for 7 days via .htaccess.
   ============================================================ */

/* ============================================================
   Xploratio landing — single-file stylesheet
   Palette and typography mirror the Xploratio web application
   (dark surfaces, coral-orange accent, system font stack).
   ============================================================ */

:root {
  /* Surface + background */
  --bg:        #0A0A0A;
  --bg-2:      #121212;
  --bg-3:      #14141F;
  --surface:   #1A1A1A;
  --surface-2: #1F1F2B;
  --border:    #2A2A2A;
  --border-2:  #3A3A4A;

  /* Text */
  --text:        #E5E7EB;
  --text-dim:    #9CA3AF;
  --text-muted:  #6B7280;

  /* Brand */
  --accent:      #f67a3d;     /* coral-orange, matches app CASES accent */
  --accent-soft: rgba(246,122,61,0.12);
  --gold:        #ff9a02;     /* app primary brand orange */
  --verified:    #10B981;     /* success green for verified / compliance */
  --purple:      #673ab7;
  --danger:      #EF4444;

  /* Spacing + radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-card:  0 12px 40px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.4);
  --shadow-shot:  0 24px 60px rgba(0,0,0,0.65), 0 4px 12px rgba(0,0,0,0.5);

  /* Layout */
  --maxw: 1200px;

  /* Font stack mirrors the Angular app */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
          'Apple Color Emoji', 'Segoe UI Emoji';
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
/* height:auto is load-bearing. Every image carries intrinsic
   width/height attributes so the browser can reserve space and avoid
   layout shift; without height:auto those attributes would squash the
   image whenever max-width scales it down (i.e. on every phone).
   The more specific .brand / .hero-visual / .shot-frame rules below
   override this where a fixed or cropped height is intended. */
img { max-width: 100%; height: auto; display: block; }

/* ---------- Utility layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p  { margin: 0; color: var(--text-dim); }

.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 720px; }

.muted { color: var(--text-muted); }
.accent-text { color: var(--accent); }
.verified-text { color: var(--verified); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease,
              border-color 120ms ease, box-shadow 120ms ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #0A0A0A;
  box-shadow: 0 6px 18px rgba(246,122,61,0.35);
}
.btn-primary:hover { background: #ff8a50; box-shadow: 0 10px 24px rgba(246,122,61,0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(10,10,10,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 36px; height: 36px;
  border-radius: 8px;
}
.brand .word {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand .tag {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border-2);
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 120ms ease;
}
.nav-links a:hover { color: var(--text); }

/* Mobile menu toggle. Checkbox + label rather than JS: no script needed, so it
   works under the tight CSP and with scripting disabled. The checkbox stays
   focusable (opacity, not display:none) so the menu opens from the keyboard. */
.nav-toggle,
.nav-burger { display: none; }

@media (max-width: 820px) {
  .brand .tag { display: none; }
  .nav { flex-wrap: wrap; }

  /* Kept in the DOM and focusable so the menu opens from the keyboard, but out
     of the pointer path — the label is the tap target, and an overlapping
     invisible checkbox would swallow those taps. */
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
  .nav-burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-dim);
    transition: background 120ms ease;
  }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-toggle:checked + .nav-burger span { background: var(--accent); }

  /* Collapsed by default; the checked toggle drops it onto its own row. */
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 6px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a {
    display: block;
    padding: 13px 2px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
  }
  .nav-links .btn { margin-top: 12px; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(246,122,61,0.14), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(103,58,183,0.12), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 {
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-bottom: 36px; }

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16,185,129,0.10);
  color: var(--verified);
  border: 1px solid rgba(16,185,129,0.25);
  font-size: 0.82rem; font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--verified);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
}

/* Hero visual: stacked device mock panels */
.hero-visual {
  position: relative;
  height: 460px;
}
.hero-visual .shot {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-shot);
  background: var(--surface);
}
.hero-visual .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.hero-visual .shot-1 { top: 0; right: 0; width: 82%; height: 72%; z-index: 2; }
.hero-visual .shot-2 { bottom: 0; left: 0; width: 62%; height: 58%; z-index: 3;
  transform: rotate(-2deg); }
.hero-visual .shot-3 { top: 44%; right: -8%; width: 44%; height: 48%; z-index: 1; opacity: 0.85; }

@media (max-width: 960px) {
  .hero-visual { height: 380px; }
}

/* ---------- Pillars band ---------- */
.pillars {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20,20,31,0.6), rgba(10,10,10,0.9));
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 540px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 20px; }
}
.pillar {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 160ms ease, transform 160ms ease;
}
.pillar:hover { border-color: var(--border-2); transform: translateY(-2px); }
.pillar .pnum {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 12px;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 0.95rem; }

/* ---------- Generic section header ---------- */
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head p { margin-top: 16px; font-size: 1.05rem; }

/* ---------- Intelligence spotlight ---------- */
.spotlight {
  background: radial-gradient(circle at 50% 0%, rgba(16,185,129,0.06), transparent 55%), var(--bg);
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .spotlight-grid { grid-template-columns: 1fr; gap: 40px; }
}
.spotlight .shot-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-shot);
  background: var(--surface);
}
.spotlight .shot-frame img { display: block; width: 100%; }

.verify-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 12px;
}
.verify-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.98rem;
  color: var(--text);
}
.verify-list li::before {
  content: "";
  flex: 0 0 18px;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  background-image: radial-gradient(circle at center, var(--verified) 36%, transparent 38%);
  border: 1px solid rgba(16,185,129,0.4);
}

/* ---------- Capabilities (alternating rows) ---------- */
.caps { background: var(--bg); }
.cap-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.cap-row:last-child { border-bottom: 0; }
.cap-row.reverse { grid-template-columns: 1.1fr 1fr; }
.cap-row.reverse .cap-copy { order: 2; }
.cap-row.reverse .cap-shot { order: 1; }

@media (max-width: 960px) {
  .cap-row,
  .cap-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .cap-row.reverse .cap-copy { order: 1; }
  .cap-row.reverse .cap-shot { order: 2; }
}

.cap-copy .step {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.22em;
  font-weight: 600;
  margin-bottom: 10px;
}
.cap-copy h3 { font-size: 1.85rem; margin-bottom: 14px; }
.cap-copy p  { font-size: 1.02rem; }
.cap-copy ul {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; gap: 10px;
}
.cap-copy ul li {
  padding-left: 22px;
  position: relative;
  font-size: 0.96rem;
  color: var(--text);
}
.cap-copy ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.cap-shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: var(--shadow-shot);
}
.cap-shot img { display: block; width: 100%; }

/* ---------- Services band (Xploratio investigators) ---------- */
.services {
  background: linear-gradient(180deg, var(--bg-3), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
}
.service-card {
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.service-card + .service-card { margin-top: 16px; }
.service-card h4 { margin: 0 0 8px; font-size: 1.1rem; }
.service-card p { font-size: 0.96rem; }
.xbip-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(246,122,61,0.3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Workflow ---------- */
.workflow { background: var(--bg-2); border-top: 1px solid var(--border); }
.wf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 960px) {
  .wf-grid { grid-template-columns: 1fr; }
}
.wf-step {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.wf-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 18px; right: 20px;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.55;
}
.wf-step h4 { margin: 0 0 8px; font-size: 1.05rem; }
.wf-step p { font-size: 0.92rem; }

/* ---------- Focus areas ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .focus-grid { grid-template-columns: 1fr; }
}
.focus-card {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 160ms ease, transform 160ms ease;
}
.focus-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.focus-card h4 { margin: 0 0 8px; font-size: 1.02rem; }
.focus-card p { font-size: 0.9rem; }
.focus-card .icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-weight: 700;
}

/* ---------- Case studies (accordion) ---------- */
/* Collapsed by default so the page flow stays calm; each study
   expands on click via native <details> element — no JS needed. */
.case-studies { background: var(--bg); border-top: 1px solid var(--border); }
.cs-list {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.cs-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 160ms ease;
}
.cs-item[open],
.cs-item:hover { border-color: var(--border-2); }
.cs-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  user-select: none;
}
.cs-item summary::-webkit-details-marker { display: none; }
.cs-item .cs-tag {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.cs-item .cs-title {
  flex: 1 1 auto;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.cs-item .cs-teaser {
  flex: 1 1 auto;
  font-size: 0.9rem;
  color: var(--text-dim);
  display: none;
}
@media (min-width: 860px) {
  .cs-item .cs-teaser { display: block; }
}
.cs-item .cs-chevron {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: transform 200ms ease;
}
.cs-item[open] .cs-chevron { transform: rotate(180deg); }

.cs-body {
  padding: 0 26px 28px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.cs-body p { font-size: 0.98rem; margin-bottom: 14px; }
.cs-body p:last-child { margin-bottom: 0; }
.cs-body h5 {
  margin: 18px 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.cs-body h5:first-child { margin-top: 0; }
.cs-download {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 120ms ease, color 120ms ease;
}
.cs-download:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Pre-footer CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(246,122,61,0.10), rgba(103,58,183,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-inner h2 { max-width: 640px; }
.cta-inner p { margin-top: 10px; max-width: 560px; }

/* ---------- Footer ---------- */
footer {
  padding: 48px 0 32px;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot a { color: var(--text-dim); }
.foot a:hover { color: var(--accent); }

/* ---------- Contact modal ---------- */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.modal h3 { margin-bottom: 6px; }
.modal p.muted { font-size: 0.9rem; margin-bottom: 20px; }
.modal .close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.modal .close:hover { color: var(--text); }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 120ms ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { min-height: 110px; resize: vertical; }
.field.hp { position: absolute; left: -9999px; } /* honeypot */

.modal .actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-msg {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  margin-top: 12px;
  display: none;
}
.form-msg.ok { display: block; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: var(--verified); }
.form-msg.err { display: block; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35); color: var(--danger); }

/* ============================================================
   Service pages (/services/*). Added in task C3.
   Only the pieces the homepage has no equivalent for —
   everything else reuses existing homepage classes.
   ============================================================ */

/* Breadcrumb trail above the page title. */
.breadcrumb {
  /* padding-top only. A `padding` shorthand here would override the
     horizontal padding .container sets, pushing the trail flush against
     the screen edge on mobile — the element carries both classes. */
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }

/* Service-page header. Single column, unlike the homepage hero which is
   a two-column grid built around the screenshot collage. */
.page-hero { padding: 48px 0 64px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 20px;
}
.page-hero .lead { margin-bottom: 32px; }
.page-hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Two-up card grid, used for proof cards and related-page links. */
.duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 860px) {
  .duo-grid { grid-template-columns: 1fr; }
}

/* Outcome line inside a proof card. */
.proof-outcome {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--verified);
}

.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.foot-links a { color: var(--text-dim); }
.foot-links a:hover { color: var(--accent); }
a.focus-card { display: block; }
a.focus-card:hover { border-color: var(--accent); }
a.focus-card h4 { color: var(--text); }

/* ============================================================
   Insights articles (/insights/*). Added in task D2.
   Generated by build-insights.py — see specs/insights-blog-sa-plan.md.
   ============================================================ */

/* Byline / date line under an article title. */
.ins-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ins-meta .sep { margin: 0 8px; opacity: 0.6; }

/* Tag chips. */
.ins-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ins-tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.ins-tag:hover { background: rgba(246,122,61,0.22); }

/* Article body. Constrained to a comfortable measure — long-form prose at
   full container width is hard to read. */
.ins-body {
  /* Centred, and slightly wider. Prose stays near 70-80 characters per line —
     much beyond that hurts readability — but the column now sits centred in
     the container rather than hugging the left edge. */
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dim);
}
.ins-body h2 { font-size: 1.6rem; margin: 44px 0 14px; color: var(--text); }
.ins-body h3 { font-size: 1.25rem; margin: 32px 0 10px; color: var(--text); }
.ins-body p { margin: 0 0 18px; }
.ins-body ul, .ins-body ol { margin: 0 0 18px; padding-left: 22px; }
.ins-body li { margin-bottom: 8px; }
.ins-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ins-body strong { color: var(--text); }
.ins-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text);
}
.ins-body code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
  /* Queries and commands are single unbreakable tokens. Without this they
     push past the viewport on narrow screens and the whole page scrolls
     sideways — measured at 395px inside a 390px viewport before the fix. */
  overflow-wrap: anywhere;
}
.ins-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  overflow-x: auto;
}
.ins-body pre code { background: none; border: 0; padding: 0; }
.ins-body img { border-radius: var(--r-md); margin: 24px 0; }

/* Article tables. Markdown emits a bare <table> with no wrapper, so the scroll
   container has to be the table itself — display:block lets a wide table scroll
   inside the text column instead of pushing the whole page sideways on a phone.
   Verified at 1440px and 390px: page overflow 0 in both. */
.ins-body table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.94em;
}
.ins-body th,
.ins-body td {
  padding: 10px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.ins-body th {
  background: var(--surface);
  font-weight: 600;
  white-space: nowrap;
  border-bottom-color: var(--accent);
}
.ins-body tbody tr:last-child td { border-bottom: 0; }

/* Index listing. */
.ins-list { display: grid; gap: 18px; }
.ins-card {
  display: block;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 160ms ease, transform 160ms ease;
}
.ins-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ins-card h3 { margin: 0 0 8px; color: var(--text); }
.ins-card p { font-size: 0.95rem; }

/* Article figures and legal notice (task E1). */
.ins-body figure { margin: 30px 0; }
.ins-body figure img {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin: 0;
}
.ins-body figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Legal notice. Deliberately quieter than the article body — it is a notice,
   not content, and should not compete with the piece for attention. */
.ins-disclaimer {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.ins-disclaimer h2 {
  font-size: 1rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.ins-disclaimer p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.ins-disclaimer p:last-child { margin-bottom: 0; }

/* Article header: title, byline and tags share the body's centred column so
   the page reads on a single axis. Article pages only — the service pages
   keep their full-width, left-aligned header. */
.ins-hero .container > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Figures break out wider than the reading column: screenshots need the
   width, body text does not. The breakout only engages once the viewport is
   wide enough that the extra width still fits inside the container — engaging
   it earlier would push figures past the container edge and cause horizontal
   scrolling. */
@media (min-width: 1100px) and (max-width: 1239px) {
  .ins-body figure { width: calc(100% + 160px); margin-left: -80px; }
}
@media (min-width: 1240px) {
  .ins-body figure { width: calc(100% + 360px); margin-left: -180px; }
}
