/* Trace Vantage — enterprise design system (restrained, IBM-inspired).
   Light neutral base, carbon text, selective dark sections, one accent.
   Shared by every page. */

:root {
  --carbon:      #161616;
  --navy:        #0b1a2b;   /* deep navy for dark sections */
  --navy-2:      #0e2236;
  --bg:          #ffffff;
  --bg-alt:      #f4f5f7;   /* cool grey section */
  --bg-alt-2:    #eceff2;
  --border:      #d9dde3;
  --border-dark: #21384d;
  --text:        #1a1a1a;
  --text-muted:  #4b5563;   /* readable muted (AA on white) */
  --on-dark:     #eef2f6;
  --on-dark-mut: #a9b6c3;
  --accent:      #0d7377;   /* single brand accent (deep teal) */
  --accent-ink:  #0a5b5e;
  --accent-soft: #e2f1f1;
  --accent-on-dark: #3e9b9f; /* readable teal on navy (retires the cyber cyan) */
  --amber:       #b45309;
  --red:         #b3261e;
  --maxw:        1200px;
  --radius:      6px;
  --sp:          96px;      /* section rhythm */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--sp) 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark p { color: var(--on-dark-mut); }
.section--carbon { background: var(--carbon); color: var(--on-dark); }

/* Typography */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: inherit; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 500; margin-bottom: 16px;
}
.section--dark .eyebrow, .section--carbon .eyebrow { color: var(--accent-on-dark); }
.h-display { font-size: clamp(34px, 5vw, 56px); }
.h-section { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.lede { font-size: 19px; color: var(--text-muted); max-width: 720px; }
.section--dark .lede { color: var(--on-dark-mut); }
.muted { color: var(--text-muted); }

/* Buttons — one hierarchy */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-decoration: none;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); text-decoration: none; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.section--dark .btn--secondary, .section--carbon .btn--secondary { color: #fff; border-color: var(--border-dark); }
.section--dark .btn--secondary:hover { border-color: var(--accent-on-dark); color: #fff; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav__brand { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--carbon); }
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; gap: 22px; margin-left: 12px; }
.nav__links a { color: var(--text); font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: var(--accent-ink); text-decoration: none; }
.nav__spacer { flex: 1; }
.nav__cta { padding: 9px 16px; font-size: 14px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 18px; cursor: pointer; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.section--alt .card { background: #fff; }
.section--dark .card { background: var(--navy-2); border-color: var(--border-dark); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }
.section--dark .card p { color: var(--on-dark-mut); }
.card__kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent-ink); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.section--dark .card__kicker { color: var(--accent-on-dark); }

/* Pillars (accent top rule) */
.pillar { border-top: 3px solid var(--accent); padding-top: 20px; }
.section--dark .pillar { border-top-color: var(--accent-on-dark); }

/* Lifecycle strip */
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.flow__step { flex: 1 1 150px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: left; }
.flow__step .n { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent-ink); }
.flow__step h4 { font-size: 16px; margin: 6px 0 4px; }
.flow__step p { font-size: 13px; color: var(--text-muted); }

/* Definition list rows */
.rows { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--border); }
.section--dark .row { border-top-color: var(--border-dark); }
.row h4 { font-size: 16px; }
.row p { color: var(--text-muted); font-size: 15px; }
.section--dark .row p { color: var(--on-dark-mut); }

/* Editions */
.editions { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.edition { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.edition > .btn:last-child { margin-top: auto; }
.edition--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.edition__tag { font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent-ink); }
.edition h3 { font-size: 22px; margin: 8px 0; }
.edition .for { color: var(--text-muted); font-size: 14px; min-height: 40px; }
.edition .price { font-size: 15px; font-weight: 600; color: var(--carbon); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding: 14px 0; margin: 14px 0; }
.edition .price small { display:block; font-weight:400; color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.edition ul { list-style: none; margin: 0 0 20px; }
.edition li { font-size: 14px; color: var(--text-muted); padding: 6px 0 6px 22px; position: relative; }
.edition li::before { content: '›'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.edition li.lbl { color: var(--carbon); font-weight: 600; padding-left: 0; }
.edition li.lbl::before { content: ''; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--on-dark); border-bottom: 1px solid var(--border-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background-image: url('/hero-analyst.jpg'); background-size: cover; background-position: center right; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9,17,29,.95) 0%, rgba(9,17,29,.88) 40%, rgba(9,17,29,.55) 66%, rgba(9,17,29,.14) 100%),
    linear-gradient(180deg, rgba(9,17,29,.32) 0%, rgba(9,17,29,0) 34%, rgba(9,17,29,.22) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 620px; padding: 120px 0 112px; }
.hero-proof { padding: 44px 0 40px; }
.hero-proof .proofstrip { margin-top: 0; }
/* Sub-page hero: darkened product screenshot behind the headline (atmospheric) */
.hero--image { position: relative; min-height: 400px; display: flex; align-items: center; overflow: hidden; }
.hero--image .container { width: 100%; }
.hero--image .hero__scrim { background:
  linear-gradient(90deg, rgba(9,17,29,.90) 0%, rgba(9,17,29,.78) 40%, rgba(9,17,29,.46) 66%, rgba(9,17,29,.22) 100%),
  linear-gradient(180deg, rgba(9,17,29,.30) 0%, rgba(9,17,29,.06) 46%, rgba(9,17,29,.38) 100%); }
/* images clearly visible on the right; headline stays readable on the left. Light blur keeps any small UI text illegible. */
.hero--image .hero__bg { filter: saturate(.95) brightness(.9) blur(1.5px); transform: scale(1.04); }
.hero .lede { color: var(--on-dark-mut); font-size: 20px; max-width: 640px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero__btns { display: flex; gap: 12px; margin: 28px 0 0; flex-wrap: wrap; }
.hero .btn--secondary { color: #fff; border-color: var(--border-dark); }
.hero .btn--secondary:hover { border-color: var(--accent-on-dark); color: #fff; }
.hero__shot { border: 1px solid var(--border-dark); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) { .hero__visual #heroCore { animation: heroPulse 3.2s ease-in-out infinite; transform-origin: 330px 235px; } }
@keyframes heroPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (max-width: 760px) { .hero__visual { max-width: 420px; margin: 0 auto; } }
.proofstrip { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--border-dark); }
.proofstrip > div { padding: 22px 20px 0; border-left: 1px solid var(--border-dark); }
.proofstrip > div:first-child { border-left: none; padding-left: 0; }
.proofstrip h4 { font-size: 15px; color: #fff; margin-bottom: 4px; }
.proofstrip p { font-size: 13px; color: var(--on-dark-mut); }

/* Form */
.field { margin-bottom: 18px; }
.field label { display:block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* Footer */
.site-footer { background: var(--carbon); color: var(--on-dark-mut); padding: 56px 0 32px; }
.site-footer a { color: var(--on-dark-mut); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__grid h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer__grid ul { list-style: none; }
.footer__grid li { padding: 5px 0; font-size: 14px; }
.footer__bottom { border-top: 1px solid #2a2a2a; margin-top: 40px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Utility */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.pill { display:inline-block; font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-ink); background:var(--accent-soft); padding:4px 10px; border-radius:20px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-block; }
  .nav.open .nav__links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px; gap: 6px; }
  .hero__inner { padding: 84px 0 72px; max-width: none; }
  .hero__bg { background-position: 72% center; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .editions { grid-template-columns: 1fr; }
  .proofstrip { grid-template-columns: 1fr 1fr; }
  .proofstrip > div { border-left: none; padding-left: 0; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   v2 — mega-nav, diagrams, screenshot frames, solution & legal
   ============================================================ */

/* Mega navigation */
.nav__group { position: relative; }
.nav__group > button {
  background: none; border: 0; font: inherit; font-size: 15px; font-weight: 500;
  color: var(--text); cursor: pointer; padding: 8px 2px; display: inline-flex; align-items: center; gap: 5px;
}
.nav__group > button::after { content: '⌄'; font-size: 12px; color: var(--text-muted); position: relative; top: -2px; }
.nav__group:hover > button, .nav__group:focus-within > button { color: var(--accent-ink); }
.mega {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16,24,40,.14); padding: 12px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .14s ease;
  z-index: 60;
}
.nav__group:hover .mega, .nav__group:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(4px); }
.mega a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); font-size: 14px; font-weight: 500; }
.mega a:hover { background: var(--bg-alt); color: var(--accent-ink); text-decoration: none; }
.mega a small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.mega--wide { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

/* Architecture diagram */
.diagram { display: grid; gap: 10px; }
.diagram__node { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; text-align: center; font-weight: 500; }
.section--dark .diagram__node { background: var(--navy-2); border-color: var(--border-dark); color: var(--on-dark); }
.diagram__arrow { text-align: center; color: var(--accent); font-size: 18px; line-height: 1; }
.diagram__gate { border: 1px dashed var(--accent); border-radius: var(--radius); padding: 14px 18px; }
.section--dark .diagram__gate { border-color: var(--accent-on-dark); }
.diagram__gate .opt { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.diagram__gate .opt span { font-family:'IBM Plex Mono',monospace; font-size: 12px; border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; color: var(--text-muted); }
.section--dark .diagram__gate .opt span { border-color: var(--border-dark); color: var(--on-dark-mut); }

/* Screenshot frame */
.frame { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 16px 40px rgba(16,24,40,.10); }
.section--dark .frame { border-color: var(--border-dark); }
.frame__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd4da; display: inline-block; }
.frame__cap { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* Availability labels */
.tag { display:inline-block; font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.04em; padding:3px 9px; border-radius:4px; font-weight:500; }
.tag--native { background:#e2f1f1; color:#0a5b5e; }
.tag--integration { background:#eef2ff; color:#3538cd; }
.tag--source { background:#fff4e5; color:#92400e; }

/* Solution page split */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:start; }
@media (max-width: 900px){ .split{ grid-template-columns:1fr; gap:28px; } .mega--wide{ grid-template-columns:1fr; min-width:auto; } }

/* Legal / long-form */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-muted); font-size: 16px; }
.prose ul { margin: 8px 0 8px 20px; }

/* Skip link + focus */
.skip { position:absolute; left:-999px; top:0; background:var(--accent); color:#fff; padding:10px 16px; z-index:100; }
.skip:focus { left:8px; top:8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Mobile mega */
@media (max-width: 900px){
  .nav.open .nav__links { align-items: stretch; }
  .nav__group { width: 100%; }
  .nav__group > button { width: 100%; justify-content: space-between; }
  .mega { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; padding: 2px 0 8px 12px; min-width: auto; }
  .mega--wide { grid-template-columns: 1fr; }
}

/* ============================================================
   v3 — real diagrams, product mockups, comparison & proof bands
   ============================================================ */

/* ============================================================
   Responsive diagram system (HTML/CSS, replaces fixed-width SVG)
   Scoped design tokens flip automatically on dark sections.
   ============================================================ */
.dgm { --d-border: var(--border); --d-bg: #fff; --d-accent: var(--accent);
  --d-title: var(--text); --d-sub: var(--text-muted); --d-tint: rgba(62,155,159,.08); }
.section--dark .dgm, .section--carbon .dgm, .dgm--dark {
  --d-border: var(--border-dark); --d-bg: var(--navy-2); --d-accent: var(--accent-on-dark);
  --d-title: #fff; --d-sub: #c8d6e4; --d-tint: rgba(62,155,159,.12); }

/* Architecture: centred vertical column that stacks natively on mobile */
.dgm-arch { max-width: 560px; margin: 0 auto; }

.dgm-node { background: var(--d-bg); border: 1.5px solid var(--d-border); border-radius: 10px;
  padding: 13px 16px; text-align: center; }
.dgm-node__t { font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--d-title); line-height: 1.25; }
.dgm-node__s { display: block; margin-top: 4px; font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px; line-height: 1.35; color: var(--d-sub); }
.dgm-node--accent { border-color: var(--d-accent); border-width: 2px; }
.dgm-node--accent .dgm-node__t { color: var(--d-accent); }
.dgm-node--gate { border: 1.5px dashed var(--d-accent); background: var(--d-tint); }
.dgm-node--excluded { border: 1.5px dashed #b5726f; }
.dgm-node--excluded .dgm-node__t { color: #c07d7a; }

/* Parallel nodes side by side; collapse to one column on mobile */
.dgm-row { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 3), minmax(0,1fr)); }
@media (max-width: 620px) { .dgm-row { grid-template-columns: 1fr; } }

/* Vertical connector with arrowhead + optional label */
.dgm-link { position: relative; padding-top: 30px; }
.dgm-link::before { content:''; position:absolute; left:50%; top:1px; transform:translateX(-50%);
  width:2px; height:20px; background: var(--d-border); }
.dgm-link::after { content:''; position:absolute; left:50%; top:12px;
  transform:translateX(-50%) rotate(45deg); width:9px; height:9px;
  border-right:2px solid var(--d-border); border-bottom:2px solid var(--d-border); }
.dgm-link--accent::before { background: var(--d-accent); }
.dgm-link--accent::after { border-color: var(--d-accent); }
.dgm-link__lbl { display:block; text-align:center; padding: 3px 8px 0; line-height: 1.25;
  font-family:'IBM Plex Mono',monospace; font-size:10.5px; color: var(--d-sub); }

/* Boundary / zone */
.dgm-zone { border: 1.5px dashed var(--d-border); border-radius: 12px; padding: 14px; }
.dgm-zone__lbl { display:block; margin-bottom: 12px; font-family:'IBM Plex Mono',monospace;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--d-accent); }

/* Linear flow: auto-fit numbered steps, wraps + stacks with no overflow */
.dgm-steps { display: grid; gap: 12px; max-width: 1040px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
/* Balanced two-rows-of-four for long flows (e.g. the 8-step evidence lineage) */
.dgm-steps--quad { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 940px; }
@media (max-width: 640px) { .dgm-steps--quad { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.dgm-step { position: relative; background: var(--d-bg); border: 1.5px solid var(--d-border);
  border-radius: 10px; padding: 16px 12px 14px; text-align: center; }
.dgm-step__n { display:flex; align-items:center; justify-content:center; width: 26px; height: 26px;
  margin: 0 auto 8px; border-radius: 50%; background: var(--d-accent); color: #04211f;
  font-family:'IBM Plex Mono',monospace; font-weight: 700; font-size: 13px; }
.dgm-step__t { font-weight: 700; font-size: 14px; color: var(--d-title); line-height: 1.2; }
.dgm-step__s { display:block; margin-top: 5px; font-family:'IBM Plex Mono',monospace; font-size: 11px;
  color: var(--d-sub); line-height: 1.35; }

/* Foundation bar + closing note */
.dgm-foundation { max-width: 1040px; margin: 14px auto 0; text-align: center;
  border: 1.5px solid var(--d-accent); border-radius: 10px; padding: 14px 16px; background: var(--d-tint); }
.dgm-foundation__lbl { font-family:'IBM Plex Mono',monospace; font-size: 11px; letter-spacing:.1em;
  text-transform: uppercase; color: var(--d-accent); }
.dgm-foundation__chips { display:flex; flex-wrap:wrap; gap: 8px; justify-content:center; margin-top: 10px; }
.dgm-chip { font-family:'IBM Plex Mono',monospace; font-size: 11.5px; color: var(--d-title);
  border: 1px solid var(--d-border); border-radius: 20px; padding: 4px 11px; background: var(--d-bg); }
.dgm-note { max-width: 1040px; margin: 14px auto 0; text-align:center; border-top: 1px solid var(--d-border);
  padding-top: 12px; font-family:'IBM Plex Mono',monospace; font-size: 11.5px; letter-spacing:.03em; color: var(--d-sub); }

.diagram-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.section--dark .diagram-card, .section--carbon .diagram-card { background: transparent; border-color: var(--border-dark); }
@media (max-width: 620px) { .diagram-card { padding: 16px; } }
.section--dark .diagram-card, .section--carbon .diagram-card { background: var(--navy-2); border-color: var(--border-dark); }
.diagram-cap { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.section--dark .diagram-cap, .section--carbon .diagram-cap { color: var(--on-dark-mut); }

/* Product interface mockup (illustrative — not a captured screenshot) */
.mock { background: #0c1520; border: 1px solid var(--border-dark); border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 168px minmax(0,1fr); font-size: 12px; }
.mock__side { background: #0a1119; border-right: 1px solid #1c2b3a; padding: 14px 12px; }
.mock__side .b { color: var(--accent-on-dark); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.mock__side .i { color: #9fb0c0; padding: 7px 8px; border-radius: 5px; margin-bottom: 2px; }
.mock__side .i--on { background: rgba(95,208,212,.12); color: #eef2f6; font-weight: 500; }
.mock__main { padding: 16px 18px; }
.mock__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock__bar h6 { color: #fff; font-size: 14px; font-weight: 600; }
.mock__bar span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #6b7d8f; }
.mock__tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
@media (max-width: 480px) { .mock { grid-template-columns: 1fr; } .mock__side { display: none; } .mock__tiles { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.mock__tile { background: #101c29; border: 1px solid #1c2b3a; border-radius: 5px; padding: 9px 10px; }
.mock__tile b { display: block; color: #fff; font-size: 15px; }
.mock__tile span { color: #6b7d8f; font-size: 10px; }
.mock__row { background: #101c29; border: 1px solid #1c2b3a; border-radius: 5px; padding: 9px 12px; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock__row .t { color: #dde4ea; font-size: 11.5px; font-weight: 500; }
.mock__row .m { color: #6b7d8f; font-size: 10px; }
.mock__chip { font-family: 'IBM Plex Mono', monospace; font-size: 9px; padding: 2px 7px; border-radius: 10px; background: rgba(95,208,212,.14); color: var(--accent-on-dark); white-space: nowrap; }
.mock__bar-track { height: 4px; background: #1c2b3a; border-radius: 2px; overflow: hidden; width: 70px; flex-shrink: 0; }
.mock__bar-fill { height: 100%; background: var(--accent-on-dark); }
.mock__row .t { overflow-wrap: break-word; min-width: 0; }
.mock__tile span { overflow-wrap: break-word; }

/* Compact variant: for mock panels shown at narrow (multi-up) widths — drops the
   side nav so tile/row text has room to breathe instead of truncating. */
.mock--compact { grid-template-columns: 1fr; }
.mock--compact .mock__side { display: none; }
.mock--compact .mock__main { padding: 14px 16px; }
.mock--compact .mock__crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--accent-on-dark); letter-spacing: .04em; text-transform: uppercase; }
.mock--compact .mock__crumb .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-on-dark); flex-shrink: 0; }
.mock__net { width: 100%; height: auto; margin-bottom: 12px; display: block; }
.frame__cap b { color: var(--text); font-weight: 600; }

/* Comparison / strategic-difference band */
.compare { display: grid; grid-template-columns: 1.1fr repeat(2, 1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.compare > div { padding: 18px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare > div:nth-child(3n+1) { background: var(--bg-alt); font-weight: 600; color: var(--carbon); }
.compare .hd { background: var(--carbon) !important; color: #fff !important; font-family:'IBM Plex Mono',monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.compare .neg { color: var(--text-muted); }
.compare .neg::before { content: '✕ '; color: var(--red); }
.compare .pos { color: var(--text); font-weight: 500; }
.compare .pos::before { content: '✓ '; color: var(--accent-ink); font-weight: 700; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } .compare > div:nth-child(3n+1) { border-top: 1px solid var(--border); } }

/* KPI / proof strip (reusable outside hero) */
.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kpis > div { padding: 22px 20px; border-left: 1px solid var(--border); }
.kpis > div:first-child { border-left: none; }
.kpis b { display: block; font-size: 28px; font-weight: 700; color: var(--carbon); font-family:'IBM Plex Mono',monospace; }
.kpis span { font-size: 13px; color: var(--text-muted); }
.section--dark .kpis, .section--carbon .kpis { border-color: var(--border-dark); }
.section--dark .kpis > div, .section--carbon .kpis > div { border-color: var(--border-dark); }
.section--dark .kpis b, .section--carbon .kpis b { color: #fff; }
.section--dark .kpis span, .section--carbon .kpis span { color: var(--on-dark-mut); }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis > div:nth-child(2n+1) { border-left: none; } }

/* Numbered process pipeline (Builder etc.) */
.pipe { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.pipe__step { flex: 1 1 150px; min-width: 140px; position: relative; padding: 20px 16px 16px; background: #fff; border: 1px solid var(--border); }
.pipe__step:not(:first-child) { border-left: none; }
.pipe__step:first-child { border-radius: 8px 0 0 8px; }
.pipe__step:last-child { border-radius: 0 8px 8px 0; }
.pipe__step .n { font-family:'IBM Plex Mono',monospace; font-size: 11px; color: var(--accent-ink); }
.pipe__step h4 { font-size: 14.5px; margin: 6px 0 4px; }
.pipe__step p { font-size: 12.5px; color: var(--text-muted); }
.pipe__step::after { content: '›'; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--border); z-index: 2; font-weight: 700; }
.pipe__step:last-child::after { content: none; }
.section--dark .pipe__step, .section--carbon .pipe__step { background: var(--navy-2); border-color: var(--border-dark); }
.section--dark .pipe__step::after, .section--carbon .pipe__step::after { color: var(--border-dark); }

/* Bordered stat inline (for legend/callouts) */
.callout { border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 6px 6px 0; padding: 16px 20px; font-size: 14.5px; color: var(--text); }
.section--dark .callout, .section--carbon .callout { background: rgba(255,255,255,.04); color: var(--on-dark); }

@media (max-width: 900px) { .compare, .kpis { font-size: 13px; } }

/* Footer — 5-column variant (brand + 4 link groups) */
.footer__grid--5 { grid-template-columns: 1.4fr repeat(4,1fr); }
@media (max-width: 900px) { .footer__grid--5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid--5 { grid-template-columns: 1fr; } }


/* ============================================================
   Grouped Platform mega-menu (curated, not a feature inventory)
   ============================================================ */
.mega--grouped { min-width: 660px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 18px; }
.mega__col { display: flex; flex-direction: column; }
.mega__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-muted); padding: 6px 12px 8px; margin-bottom: 2px; border-bottom: 1px solid var(--border); }
@media (max-width: 900px){
  .mega--grouped { grid-template-columns: 1fr; min-width: auto; gap: 0; }
  .mega__label { padding: 10px 0 4px; border-bottom: 0; }
}

/* ============================================================
   Figure / image slot  — a labelled placement that renders clean
   until a real asset (screenshot or photograph) is dropped in.
   Add the asset by setting  style="background-image:url(...)"  on
   .figure__frame and adding the class  is-loaded  to hide the label.
   ============================================================ */
.figure { margin: 0; }
.figure__frame { position: relative; display: block; width: 100%; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg,#0e1826 0%,#132234 55%,#0b1420 100%);
  background-size: cover; background-position: center; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(9,16,28,.16); }
.figure__frame::before { content: ""; display: block; padding-top: var(--fig-ratio, 62.5%); }
.figure--shot .figure__frame { background: linear-gradient(135deg,#0d1622 0%,#101f30 60%,#0a1119 100%); }
.figure--photo .figure__frame { background: linear-gradient(135deg,#101922 0%,#17242f 60%,#0c141b 100%); }
/* the pending overlay — describes what belongs here; disappears once is-loaded is set */
.figure__pending { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  gap: 8px; padding: 24px 26px; color: #c8d6e4; }
.figure__frame.is-loaded .figure__pending { display: none; }
.figure__kind { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6fb2b6; }
.figure__what { font-size: 15px; font-weight: 600; line-height: 1.35; color: #e7eef5; max-width: 34ch; }
.figure__meta { font-size: 12px; color: #8ba0b4; line-height: 1.45; max-width: 44ch; }
.figure__pending::after { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(140,170,195,.28); border-radius: 10px; pointer-events: none; }
.figure figcaption { margin-top: 10px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.figure__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* one consistent annotation style, used sparingly (max 3 per shot) */
.figure__note { position: absolute; z-index: 2; background: rgba(9,16,28,.92); color: #eaf1f7;
  font-size: 11.5px; font-weight: 600; line-height: 1.3; padding: 6px 9px; border-radius: 7px;
  border: 1px solid rgba(111,178,182,.4); box-shadow: 0 6px 18px rgba(0,0,0,.28); max-width: 190px; }

/* ============================================================
   Leadership team — profile cards. Cards stay hidden until real
   content is supplied (no unfinished content on the public site).
   Reveal a card by removing the  hidden  attribute once its bio,
   name, title and headshot are in place.
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 860px){ .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .team { grid-template-columns: 1fr; } }
.team__card { border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 18px; }
.team__card[hidden] { display: none; }
.team__photo { width: 100%; aspect-ratio: 4/5; border-radius: 10px; object-fit: cover;
  background: linear-gradient(135deg,#e7edf3,#d5dee7); margin-bottom: 14px; }
.team__name { font-size: 17px; font-weight: 700; color: var(--carbon); }
.team__role { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); margin-top: 2px; }
.team__bio { font-size: 14px; color: var(--text); line-height: 1.55; margin-top: 10px; }
.team__link { font-size: 13px; font-weight: 600; margin-top: 10px; display: inline-block; }

/* Editions price line — explicit two-line label, never concatenated */
.edition .price { display: flex; flex-direction: column; gap: 5px; }
.edition .price .price__lead { display: block; font-size: 15px; font-weight: 700; color: var(--carbon); }
.edition .price .price__sub { display: block; font-weight: 400; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }

/* Homepage product-proof story rows — large, readable, alternating */
.proof-row { display: grid; grid-template-columns: 1fr 1.12fr; gap: 44px; align-items: center; }
.proof-row + .proof-row { margin-top: 48px; }
.proof-row--rev .proof-row__media { order: -1; }
.proof-row .h-card { margin-top: 6px; }
@media (max-width: 860px){
  .proof-row { grid-template-columns: 1fr; gap: 20px; }
  .proof-row--rev .proof-row__media { order: 0; }
  .proof-row + .proof-row { margin-top: 34px; }
}

/* Mid-section product screenshots need clear separation from the cards/steps above */
.figure.mt-l { margin-top: 64px; margin-bottom: 8px; }
@media (max-width: 640px){ .figure.mt-l { margin-top: 44px; } }

/* "Working with us" checklist inside a card */
.card ul.checks { list-style: none; margin: 16px 0 0; padding: 0; }
.card ul.checks li { position: relative; padding: 9px 0 9px 26px; font-size: 15px; color: var(--text-muted); border-top: 1px solid var(--border); }
.card ul.checks li:first-child { border-top: 0; }
.card ul.checks li::before { content: '✓'; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.section--dark .card ul.checks li { border-top-color: var(--border-dark); color: var(--on-dark-mut); }

/* Brand logo (replaces the text wordmark) */
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand .brand-logo { height: 30px; width: auto; display: block; }
.nav__brand:hover { text-decoration: none; }
.footer__brand .footer__logo { height: 30px; width: auto; display: block; margin-bottom: 6px; }
@media (max-width: 600px){ .nav__brand .brand-logo { height: 26px; } }

/* Trace Mesh product logo lockup (mesh hero) */
.mesh-logo svg { height: 50px; width: auto; display: block; margin-bottom: 20px; }
@media (max-width: 600px){ .mesh-logo svg { height: 40px; } }
