/* =========================================================================
   QUALITUM HOMEPAGE REDESIGN — new section styles
   Loaded after qualitum.css so these rules win at equal specificity.
   Brand tokens reused from qualitum.css (:root).
   ========================================================================= */

/* ---- shared section rhythm helpers ---- */
.section-head-left { max-width: 760px; margin-bottom: 52px; }
.section-head-left .section-pill { margin-bottom: 18px; }
.section-head-left h2 {
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-head-left p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 62ch;
}
.section-tight { padding: 84px 0; }

/* =========================================================================
   1 — EYEBROW PROOF BAR (very top, above utility nav)
   ========================================================================= */
.proof-eyebrow {
  background: var(--purple-900);
  color: var(--on-dark);
}
.proof-eyebrow-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--on-dark-mute);
  text-align: center;
}
.proof-eyebrow-inner strong { color: var(--on-dark); font-weight: 500; }
.proof-eyebrow .pdot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-mint);
  box-shadow: 0 0 0 0 rgba(62,241,172,0.5);
  animation: pdot-pulse 2.4s infinite;
}
@keyframes pdot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(62,241,172,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(62,241,172,0); }
}
@media (max-width: 640px) {
  .proof-eyebrow-inner { font-size: 10.5px; letter-spacing: 0.03em; padding: 8px 14px; }
}

/* ---- hero audience / outcome subline ---- */
.hero-subline {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--on-dark);
  max-width: 40ch;
  margin-bottom: 20px;
}
.hero-subline .accent { color: var(--teal-mint); }
.hero-lede.compact { font-size: 16px; max-width: 44ch; margin-bottom: 30px; color: var(--on-dark-mute); }

/* homepage hero title — dialled down a touch */
.hero-dark .hero-title { font-size: clamp(36px, 4.4vw, 54px); }

/* =========================================================================
   2 — REFERENCE PROOF BAND
   ========================================================================= */
.refproof {
  background: var(--bg);
  padding: 76px 0 72px;
}
.refproof-inner {
  max-width: 940px; margin: 0 auto; text-align: center;
}
.refproof .rk {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple-600); margin-bottom: 26px;
}
.refproof blockquote {
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.32; letter-spacing: -0.02em; font-weight: 500;
  color: var(--ink); margin-bottom: 26px;
}
.refproof blockquote .hl { color: var(--purple-600); }
.refproof-attr {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 40px;
}
.refproof-attr img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--card-border);
}
.refproof-attr .ra-name { text-align: left; }
.refproof-attr strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.refproof-attr span { font-size: 13px; color: var(--ink-mute); }
.chip-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.chip-row .chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 13px; border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--ink-soft); background: var(--card-bg);
}
.refproof .chip-row .chip { border-color: var(--card-border); }

/* =========================================================================
   3 — THE PROBLEM (broken evidence chain)
   ========================================================================= */
.problem { background: var(--bg); padding: 96px 0 100px; }
.problem .section-head-left { text-align: left; }
.chain {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; margin-top: 8px; position: relative;
}
.chain-node {
  position: relative; padding: 0;
}
.chain-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #b23b3b; margin-bottom: 10px;
  display: block;
}
.chain-node p {
  font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500;
}
/* broken connector between icons — aligned to icon vertical centre */
.chain-node:not(:last-child)::after {
  content: ""; position: absolute; top: 22px;
  left: 56px; right: -30px;
  transform: translateY(-50%);
  border-top: 2px dashed #c98a8a;
}
.chain-resolve {
  margin-top: 46px;
  display: flex; align-items: center; gap: 18px;
  padding: 24px 28px;
  background: var(--purple-900); color: var(--on-dark);
  border-radius: 12px; position: relative; overflow: hidden;
}
.chain-resolve::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 90% 50%, rgba(62,241,172,0.22), transparent 70%);
  pointer-events: none;
}
.chain-resolve .cr-line {
  flex: 0 0 auto; width: 120px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-mint), rgba(62,241,172,0.4));
  position: relative;
}
.chain-resolve .cr-line::before,
.chain-resolve .cr-line::after {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px;
  border-radius: 50%; background: var(--teal-mint); transform: translateY(-50%);
}
.chain-resolve .cr-line::before { left: -2px; }
.chain-resolve .cr-line::after { right: -2px; }
.chain-resolve p {
  font-size: clamp(17px, 2vw, 21px); font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.35; position: relative;
}
.chain-resolve p strong { color: var(--teal-mint); font-weight: 600; }
@media (max-width: 860px) {
  .chain { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
  .chain-node:not(:last-child)::after { display: none; }
}
@media (max-width: 520px) {
  .chain { grid-template-columns: 1fr; }
  .chain-resolve { flex-direction: column; align-items: flex-start; gap: 14px; }
  .chain-resolve .cr-line { width: 90px; }
}

/* =========================================================================
   4 — FOUR PILLARS (2x2)
   ========================================================================= */
.pillars-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px;
}
.pillar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 34px 34px 32px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px;
  background: linear-gradient(180deg, var(--teal-mint), var(--purple-600));
  border-radius: 0 3px 3px 0;
}
.pillar:hover { transform: translateY(-3px); box-shadow: 0 26px 52px -26px rgba(8,34,24,0.28); }
.pillar .pk {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple-600); margin-bottom: 14px;
}
.pillar h3 {
  font-size: clamp(22px, 2.3vw, 27px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--ink); margin-bottom: 10px;
}
.pillar .promise {
  font-size: 15px; font-weight: 600; color: var(--purple-600); margin-bottom: 14px;
}
.pillar .mech {
  font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 20px;
}
.pillar .why {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink);
}
.pillar .why b {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 7px; font-weight: 500;
}
.pillar .why strong { font-weight: 600; color: var(--ink); }
@media (max-width: 820px) { .pillars-grid { grid-template-columns: 1fr; } }

/* pillars mid-page CTA */
.pillars-cta { text-align: center; margin-top: 44px; }

/* =========================================================================
   5 — WHAT MAKES QUALITUM DIFFERENT (dark statement band)
   ========================================================================= */
.different {
  padding: 0 20px 20px; background: var(--bg);
}
.different-inner {
  background: var(--purple-900); color: var(--on-dark);
  border-radius: 14px; overflow: hidden; position: relative;
  padding: 84px 6vw 78px;
}
.different-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 460px at 88% 12%, rgba(62,241,172,0.16), transparent 62%),
    linear-gradient(115deg, transparent 45%, rgba(62,241,172,0.08) 52%, transparent 60%);
}
.different-inner > * { position: relative; z-index: 1; }
.different .d-pill {
  display: inline-block; padding: 7px 18px; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-mint);
  margin-bottom: 22px;
}
.different h2 {
  font-size: clamp(30px, 4vw, 50px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.05; max-width: 18ch; margin-bottom: 20px;
}
.different .d-sub {
  font-size: 17px; line-height: 1.6; color: var(--on-dark-mute); max-width: 64ch;
  margin-bottom: 52px;
}
.assert-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  border-top: 1px solid var(--rule-dark); padding-top: 44px;
}
.assert .an {
  font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.15; margin-bottom: 10px;
}
.assert .an em { font-style: normal; color: var(--teal-mint); }
.assert p { font-size: 14px; line-height: 1.5; color: var(--on-dark-mute); }
@media (max-width: 900px) { .assert-grid { grid-template-columns: 1fr 1fr; gap: 30px 28px; } }
@media (max-width: 520px) { .assert-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   6 — PLATFORM product visuals (trace graph + protocol)
   ========================================================================= */
.pv-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0 0 52px;
}
.pv {
  background: #fff; border: 1px solid var(--card-border); border-radius: 14px;
  overflow: hidden; box-shadow: 0 24px 50px -30px rgba(8,34,24,0.35);
}
.pv-top {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid #dbe7e1; background: linear-gradient(180deg,#f7faf9,#eef4f1);
}
.pv-top .pv-title {
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.pv-top .pv-title::before {
  content: ""; width: 15px; height: 15px; border-radius: 4px;
  background: linear-gradient(135deg,#3EF1AC,#11603f);
}
.pv-top .pv-chip {
  margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #11603f;
  background: #e7f6ee; border: 1px solid #bfe3d2; border-radius: 999px; padding: 4px 9px;
}
.pv-body { padding: 22px 22px 24px; }

/* --- trace graph --- */
.tg { position: relative; height: 268px; }
.tg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tg svg line { stroke: #b9cdc4; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tg svg line.hot { stroke: var(--purple-500); stroke-width: 2; }
.tg-node {
  position: absolute; transform: translate(-50%,-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.04em;
  font-weight: 600; color: var(--ink);
  background: #fff; border: 1.5px solid var(--card-border); border-radius: 8px;
  padding: 7px 11px; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(8,34,24,0.3);
  display: inline-flex; align-items: center; gap: 7px;
}
.tg-node .d { width: 7px; height: 7px; border-radius: 50%; background: var(--purple-500); }
.tg-node.root { border-color: var(--purple-600); background: var(--purple-900); color: #fff; }
.tg-node.root .d { background: var(--teal-mint); }
.tg-node.hot { border-color: var(--teal-mint); box-shadow: 0 0 0 4px rgba(62,241,172,0.18), 0 6px 16px -8px rgba(8,34,24,0.3); }
.tg-node.hot .d { background: var(--teal-mint); }

/* --- protocol with human approval highlight --- */
.pp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid #d4dde6;
}
.pp-head .pp-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.pp-head .pp-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-mute); letter-spacing: 0.06em; }
.pp-row {
  display: flex; align-items: center; gap: 11px; padding: 10px 2px;
  border-bottom: 1px solid #e4eae7; font-size: 12.5px; color: var(--ink-soft);
}
.pp-row:last-child { border-bottom: none; }
.pp-row .pp-tick {
  width: 15px; height: 15px; border-radius: 3px; flex-shrink: 0;
  background: var(--teal-mint); position: relative;
}
.pp-row .pp-tick::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 3.5px; height: 7px;
  border: solid #08311f; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pp-row .pp-agent {
  margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-600);
  background: #e7f6ee; border-radius: 999px; padding: 3px 8px;
}
.pp-approve {
  margin-top: 16px; padding: 16px 18px; border-radius: 12px;
  background: var(--purple-900); color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(62,241,172,0.22);
}
.pp-approve::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px 120px at 100% 0%, rgba(62,241,172,0.28), transparent 70%);
}
.pp-approve .ppa-k {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-mint); margin-bottom: 8px; position: relative;
}
.pp-approve .ppa-row { display: flex; align-items: center; gap: 12px; position: relative; }
.pp-approve .ppa-av {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#f7c59f,#e07a5f); border: 2px solid rgba(255,255,255,0.35);
}
.pp-approve .ppa-name { font-size: 13px; font-weight: 600; }
.pp-approve .ppa-role { font-size: 11px; color: var(--on-dark-mute); }
.pp-approve .ppa-btn {
  margin-left: auto; font-size: 12px; font-weight: 600; padding: 9px 16px;
  border-radius: 8px; background: var(--teal-mint); color: #08311f;
  display: inline-flex; align-items: center; gap: 7px;
}
@media (max-width: 820px) { .pv-wrap { grid-template-columns: 1fr; } }

/* tighten platform cards */
.card-3.tight { padding: 26px 26px 24px; }
.card-3.tight h4 { font-size: 20px; margin-bottom: 8px; }
.card-3.tight p { font-size: 14px; }
.card-3.tight .card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.card-3.tight .card-chips span {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--card-border);
  border-radius: 999px; color: var(--ink-soft);
}

/* =========================================================================
   7 — WHAT WE TOUCH (artefact chips)
   ========================================================================= */
.artefacts { background: var(--bg-alt); }
.artefact-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.artefact-grid .af {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.02em;
  padding: 11px 16px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 8px; color: var(--ink); font-weight: 500;
  transition: transform .15s, border-color .15s, color .15s;
}
.artefact-grid .af:hover { transform: translateY(-2px); border-color: var(--purple-500); color: var(--purple-600); }
.artefact-grid .af .n {
  font-size: 9px; color: var(--purple-500); margin-right: 8px; opacity: 0.7;
}

/* =========================================================================
   8 — COMPARISON TABLE collapse
   ========================================================================= */
.vs-extra { display: none; }
.vs-table.expanded .vs-extra { display: table-row; }
.vs-expander { text-align: center; margin-top: 26px; }
.vs-expander button {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: 999px; cursor: pointer;
  background: var(--card-bg); border: 1px solid var(--rule-strong); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.vs-expander button:hover { border-color: var(--purple-500); }
.vs-expander button .vx-caret { transition: transform .25s; font-size: 11px; color: var(--purple-600); }
.vs-expander button.open .vx-caret { transform: rotate(180deg); }

/* =========================================================================
   9 — LAYER DIAGRAM (integrations)
   ========================================================================= */
.layers { margin-top: 44px; max-width: 860px; margin-left: auto; margin-right: auto; }
.layer {
  border-radius: 12px; padding: 22px 26px; text-align: center; position: relative;
}
.layer .lk {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 8px;
}
.layer .lc { font-size: 14px; line-height: 1.5; }
.layer.stack { background: var(--card-bg); border: 1px solid var(--card-border); }
.layer.stack .lk { color: var(--ink-mute); }
.layer.stack .lc { color: var(--ink-soft); }
.layer.stack .lc strong { color: var(--ink); font-weight: 600; }
.layer.agent {
  background: var(--purple-900); color: #fff; overflow: hidden;
}
.layer.agent::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 160px at 50% 0%, rgba(62,241,172,0.24), transparent 70%);
}
.layer.agent .lk { color: var(--teal-mint); position: relative; }
.layer.agent .lc { position: relative; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.layer.evidence { background: var(--bg-alt2); border: 1px solid var(--card-border); }
.layer.evidence .lk { color: var(--purple-600); }
.layer.evidence .lc { color: var(--ink); font-weight: 500; }
.layer-arrow {
  display: flex; justify-content: center; padding: 8px 0; color: var(--purple-500);
}
.layer-arrow svg { width: 22px; height: 22px; }
.layers-cap {
  margin-top: 26px; text-align: center; font-size: 14.5px; line-height: 1.6;
  color: var(--ink-soft); max-width: 68ch; margin-left: auto; margin-right: auto;
}
.layers-cap strong { color: var(--ink); font-weight: 600; }

/* =========================================================================
   10 — GAMP 5 CATEGORY CHECK (live input)
   ========================================================================= */
.gamp {
  padding: 0 20px 20px; background: var(--bg);
}
.gamp-inner {
  background: var(--bg-alt); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 56px 6vw 52px; position: relative; overflow: hidden;
}
.gamp-head { max-width: 640px; margin-bottom: 30px; }
.gamp .g-pill {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  background: var(--purple-900); color: var(--teal-mint);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 18px;
}
.gamp-head h2 {
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.05; color: var(--ink); margin-bottom: 12px;
}
.gamp-head p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }
.gamp-box {
  display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start;
}
.gamp-input textarea {
  width: 100%; min-height: 172px; resize: vertical;
  background: #fff; border: 1px solid var(--rule-strong); border-radius: 12px;
  padding: 16px 18px; font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.55;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.gamp-input textarea:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(26,110,74,0.12); }
.gamp-input .g-controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.gamp-run {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; background: var(--purple-600); color: #fff;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14.5px;
  transition: filter .15s, transform .15s;
}
.gamp-run:hover { filter: brightness(0.93); transform: translateY(-2px); }
.gamp-egs { font-size: 12.5px; color: var(--ink-mute); }
.gamp-egs button {
  background: none; border: none; color: var(--purple-600); font-family: inherit;
  font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  padding: 0 2px;
}
.gamp-result {
  background: #fff; border: 1px solid var(--card-border); border-radius: 12px;
  padding: 22px 22px 24px; min-height: 172px;
}
.gamp-result .gr-empty {
  font-size: 13.5px; color: var(--ink-mute); line-height: 1.6;
  display: flex; flex-direction: column; gap: 12px;
}
.gamp-result .gr-empty .gr-legend { display: flex; flex-direction: column; gap: 8px; }
.gamp-result .gr-empty .gr-legend span { display: flex; gap: 9px; align-items: baseline; }
.gamp-result .gr-empty .gr-legend b { font-family: 'JetBrains Mono', monospace; color: var(--purple-600); font-size: 11px; letter-spacing: 0.06em; }
.gr-cat {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px;
}
.gr-cat .gc-num {
  font-size: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--purple-600); line-height: 1;
}
.gr-cat .gc-lab { font-size: 14px; font-weight: 600; color: var(--ink); }
.gr-conf {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px;
}
.gr-reason { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.gr-reason strong { color: var(--ink); font-weight: 600; }
.gr-fine {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule);
  font-size: 11.5px; line-height: 1.5; color: var(--ink-mute);
}
@media (max-width: 820px) { .gamp-box { grid-template-columns: 1fr; } }

/* ---- FAQ framing extras ---- */
.hf-actions {
  display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap;
}
.hf-download {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--purple-600);
  padding: 11px 20px; border: 1px solid var(--card-border); border-radius: 999px;
  background: var(--card-bg); transition: border-color .15s, transform .15s;
}
.hf-download:hover { border-color: var(--purple-500); transform: translateY(-2px); }

/* Use-case panels became white cards (shared card rule) but had no inner
   padding, so copy and media touched the box edges. Give them breathing room. */
.uc-panel.active { padding: 44px; border-radius: 16px; align-items: center; }
@media (max-width: 900px) { .uc-panel.active { padding: 30px; } }
@media (max-width: 600px) { .uc-panel.active { padding: 22px; } }

/* =========================================================================
   REFERENCE DEPLOYMENT — mix of dark quote frame + scattered lab photos + logos
   ========================================================================= */
.refmix .trust-frame { max-width: 780px; padding: 52px 56px 46px; }
.refmix blockquote {
  font-size: clamp(22px, 2.7vw, 31px); line-height: 1.32; letter-spacing: -0.02em;
  font-weight: 500; color: #fff; margin: 0 auto 26px; max-width: 24ch;
}
.refmix blockquote .hl { color: var(--teal-mint); }
.refmix-attr {
  display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 28px;
}
.refmix-attr img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.35);
}
.refmix-attr .ra-name { text-align: left; }
.refmix-attr strong { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.refmix-attr span { font-size: 12.5px; color: var(--on-dark-mute); }
.refmix .chip-row { margin-bottom: 34px; }
.refmix .chip-row .chip {
  color: var(--on-dark-mute); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04);
}
.refmix .trust-label { color: var(--on-dark-soft); }
.refmix .trust-logos img { filter: brightness(0) invert(1); opacity: 0.9; }
.refmix .refmix-rec {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--teal-mint); color: #08311f; transition: transform .15s, filter .15s;
}
.refmix .refmix-rec:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* =========================================================================
   ICONS — shared badge + per-section placement
   ========================================================================= */
.ico-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(140deg, rgba(62,241,172,0.18), rgba(17,96,63,0.12));
  border: 1px solid var(--card-border); color: var(--purple-600);
}
.ico-badge svg { width: 22px; height: 22px; }

/* pill with leading icon */
.section-pill.has-ico, .d-pill.has-ico, .g-pill.has-ico {
  display: inline-flex; align-items: center; gap: 8px;
}
.section-pill.has-ico svg, .d-pill.has-ico svg, .g-pill.has-ico svg { width: 14px; height: 14px; }

/* pillar icon */
.pillar .p-ico { margin-bottom: 18px; }

/* problem break icons */
.chain-node .chain-ico {
  width: 44px; height: 44px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
  background: rgba(217,85,85,0.09); border: 1px solid rgba(217,85,85,0.28); color: #b23b3b;
  position: relative; z-index: 1;
}
.chain-node .chain-ico svg { width: 21px; height: 21px; }

/* assertion icons (dark section) */
.assert .a-ico {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
  background: rgba(62,241,172,0.12); border: 1px solid rgba(62,241,172,0.3); color: var(--teal-mint);
}
.assert .a-ico svg { width: 20px; height: 20px; }

/* boundary list icons */
.boundary-col ul li { position: relative; }
.boundary-col .bico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-right: 9px; vertical-align: -4px;
  color: var(--purple-600);
}
.boundary-col.no .bico { color: #b23b3b; }
.boundary-col .bico svg { width: 16px; height: 16px; }

/* =========================================================================
   VIDEO EXPLAINER — hero overlay button, pill trigger, and modal
   ========================================================================= */
.hero-mock { position: relative; }

/* overlay button sitting on the product mock */
.video-overlay {
  position: absolute; z-index: 5; left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 14px; border-radius: 14px; cursor: pointer;
  background: rgba(8, 34, 24, 0.9); color: #fff;
  border: 2px solid var(--teal-mint);
  box-shadow: 0 18px 50px -12px rgba(8, 34, 24, 0.6), 0 0 0 4px rgba(62, 241, 172, 0.15);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  transition: box-shadow .18s ease, background .18s ease;
  max-width: calc(100% - 32px);
  animation: vo-shake 3s ease-in-out infinite;
}
.video-overlay:hover { background: rgba(8, 34, 24, 0.96); box-shadow: 0 24px 64px -12px rgba(8, 34, 24, 0.7), 0 0 0 5px rgba(62, 241, 172, 0.3); animation-play-state: paused; }
@keyframes vo-shake {
  0%, 66%, 100% { transform: translate(-50%, -50%) rotate(0); }
  70% { transform: translate(-50%, -50%) rotate(-1.6deg) scale(1.03); }
  74% { transform: translate(-50%, -50%) rotate(1.6deg) scale(1.03); }
  78% { transform: translate(-50%, -50%) rotate(-1.2deg) scale(1.02); }
  82% { transform: translate(-50%, -50%) rotate(0.8deg); }
  86% { transform: translate(-50%, -50%) rotate(0); }
}
.video-overlay .vo-play {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-mint); color: #08311f;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(62, 241, 172, 0.55); animation: vo-pulse 2.4s infinite;
}
.video-overlay .vo-play svg { width: 20px; height: 20px; margin-left: 2px; }
@media (prefers-reduced-motion: reduce) { .video-overlay { animation: none; } }
@keyframes vo-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(62,241,172,0.5); } 50% { box-shadow: 0 0 0 10px rgba(62,241,172,0); } }
.video-overlay .vo-text { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.video-overlay .vo-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.video-overlay .vo-sub { font-size: 12.5px; color: var(--teal-mint); }

/* the whole mock dims/blurs when hovering the overlay */
.hero-mock .mock-window { transition: filter .25s ease, opacity .25s ease; }
.hero-mock:has(.video-overlay:hover) .mock-window { filter: blur(3px) brightness(0.7); }

/* pill-style video trigger (hero CTA + reused elsewhere) */
.pill-cta-video {
  display: inline-flex; align-items: center; gap: 14px; text-align: left;
  padding-left: 8px; padding-right: 26px;
}
/* keep both hero CTAs the same height regardless of the video pill's play circle */
.hero-ctas { align-items: stretch; }
.hero-ctas .pill-cta-video { padding-top: 8px; padding-bottom: 8px; }
.hero-ctas .btn-ghost-dark { display: inline-flex; align-items: center; }
.pill-cta-video .pcv-play {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.16); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.pill-cta-video .pcv-play svg { width: 17px; height: 17px; margin-left: 2px; }
.pill-cta-video .pcv-text { display: flex; flex-direction: column; line-height: 1.2; }
.pill-cta-video .pcv-sub { font-size: 11.5px; font-weight: 500; opacity: 0.72; }

/* text-link style trigger for use inside content sections */
.video-link {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 12px 22px 12px 12px; border-radius: 999px;
  background: var(--card-bg); border: 1px solid var(--rule-strong); color: var(--ink);
  font-family: 'DM Sans', sans-serif; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.video-link:hover { border-color: var(--purple-500); transform: translateY(-2px); box-shadow: 0 16px 36px -20px rgba(8,34,24,0.4); }
.video-link .vl-play {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--purple-900); color: var(--teal-mint);
  display: inline-flex; align-items: center; justify-content: center;
}
.video-link .vl-play svg { width: 18px; height: 18px; margin-left: 2px; }
.video-link .vl-text { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.video-link .vl-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.video-link .vl-sub { font-size: 12.5px; color: var(--ink-mute); }

/* modal */
.video-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.video-modal[hidden] { display: none; }
.video-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 15, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: recFade .2s ease; }
.video-card { position: relative; width: min(860px, 100%); background: #0b1f17; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6); animation: recPop .25s cubic-bezier(.4, 1.4, .6, 1); }
.video-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.55); border: none; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.video-close:hover { background: rgba(0,0,0,0.8); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; background: var(--purple-900); flex-wrap: wrap; }
.video-cta-copy { display: flex; flex-direction: column; line-height: 1.4; }
.video-cta-copy strong { color: #fff; font-size: 15px; font-weight: 600; }
.video-cta-copy span { color: var(--on-dark-mute); font-size: 13px; }
.video-cta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 12px 22px; border-radius: 999px; background: var(--teal-mint); color: #08311f; font-weight: 600; font-size: 14.5px; transition: transform .15s, filter .15s; }
.video-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }

@media (max-width: 640px) {
  .video-overlay { gap: 11px; padding: 11px 18px 11px 11px; }
  .video-overlay .vo-play { width: 38px; height: 38px; }
  .video-overlay .vo-title { font-size: 13.5px; }
  .video-overlay .vo-sub { font-size: 11.5px; }
  .video-cta-row { flex-direction: column; align-items: stretch; }
  .video-cta { justify-content: center; }
}

/* =========================================================================
   MOBILE POLISH — tighter padding + comfortable tap targets on small screens
   ========================================================================= */
@media (max-width: 640px) {
  /* reference frame: side padding was eating the quote width */
  .refmix .trust-frame { padding: 40px 24px 38px; }
  .refmix blockquote { font-size: 21px; max-width: none; }
  .refmix-attr { flex-wrap: wrap; }

  /* trim oversized vertical rhythm on the dark + gamp panels */
  .different { padding: 0 12px 12px; }
  .different-inner { padding: 52px 24px 48px; }
  .gamp { padding: 0 12px 12px; }
  .gamp-inner { padding: 40px 24px 40px; }

  .problem { padding: 64px 0 68px; }
  .section-head-left { margin-bottom: 36px; }

  /* comfortable 44px+ tap targets */
  .hero-ctas .pill-cta,
  .hero-ctas .btn-ghost-dark,
  .pillars-cta .pill-cta,
  .gamp-run,
  .uc-cta,
  .vs-expander button,
  .hf-download,
  .refmix-rec { min-height: 46px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .pill-cta,
  .hero-ctas .btn-ghost-dark { justify-content: center; }

  /* artefact chips: a touch more room */
  .artefact-grid .af { font-size: 11.5px; padding: 10px 13px; }

  /* trace-graph card: let it scroll rather than clip if a node is wide */
  .pv-body { overflow-x: auto; }
}
@media (max-width: 400px) {
  .refmix blockquote { font-size: 19px; }
  .metric-strip-grid { gap: 4px; }
}
