/* ════════════════════════════════════════════════════════════
   AGENTIC CPQ · aubergine/editorial system
   Rides shared/site.css tokens + .shell grid + .btn components,
   so it aligns with the injected header/footer automatically.
   Keeps the animated visuals from the dark variant, retokenized.
   ════════════════════════════════════════════════════════════ */

.cq { --cq-sec: 104px; }
.cq-sec { padding: var(--cq-sec) 0; border-top: 1px solid var(--rule); }
.cq-sec-band { background: var(--bg-2); border-top: 1px solid var(--rule); }
.cq :where(section[id]) { scroll-margin-top: 116px; }

/* four agent hues, drawn from the site palette (aubergine · pop · sage · ochre) */
.cq { --ag-1: var(--accent); --ag-2: var(--pop); --ag-3: #4F7A5B; --ag-4: #8A6E3B; --alert: #B33B1F; }

/* ── shared type ── */
.cq-eyebrow { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.cq-h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; margin: 0; }
.cq-h2 em, .cq-hero h1 em, .cq-cta h2 em { font-style: italic; font-family: "Instrument Serif", Georgia, serif; color: var(--accent); font-weight: 400; letter-spacing: -0.01em; }
.cq-lead { font-size: 18px; color: var(--ink-2); line-height: 1.55; margin: 20px 0 0; max-width: 52ch; }
.cq-lead strong { color: var(--ink); font-weight: 500; }
.cq-head { max-width: 44ch; }
.cq-head .cq-h2 { max-width: 20ch; }
.cq-note { font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cq-chip { font: 500 11px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule); padding: 6px 10px; border-radius: var(--r-pill); }

/* ─────────────────────────── HERO ─────────────────────────── */
.cq-hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.cq-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse 44% 50% at 38% 30%, var(--accent-soft), transparent 70%); opacity: 0.9;
}
.cq-hero .shell { position: relative; }
.cq-hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 64px; align-items: center; }
.cq-hero h1 { font-size: clamp(46px, 6.6vw, 92px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 500; margin: 0; max-width: 15ch; }
.cq-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 7px 13px; border-radius: var(--r-pill);
}
.cq-badge .d { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); animation: cqBlink 2.4s var(--ease) infinite; }
@keyframes cqBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.cq-ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cq-ctas .btn { white-space: nowrap; }

/* hero stat strip */
.cq-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
.cq-stats > div { padding: 26px 28px 0 0; }
.cq-stat-v { font-size: clamp(30px, 3.4vw, 44px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.cq-stat-m { font: 500 11px/1.45 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }

/* ──────────────── ANIMATED QUOTE CARD ──────────────── */
.cq-quote-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); overflow: hidden; position: relative; box-shadow: 0 40px 90px -50px #0E0E0C55; }
.cq-qc-bar { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--rule); background: var(--bg-2); }
.cq-qc-bar .ep { font: 500 11px/1 var(--font-mono); color: var(--ink-2); letter-spacing: 0.06em; }
.cq-qc-bar .ok { margin-left: auto; font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: var(--r-pill); }
.cq-qc-body { padding: 24px 22px 54px; }
.cq-qc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.cq-qc-acct { font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.cq-qc-name { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; margin-top: 5px; }
.cq-qc-total { font-size: 28px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; text-align: right; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cq-qc-total small { display: block; font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }

.cq-qc-rows { margin-top: 22px; border-top: 1px solid var(--rule); }
.cq-qc-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  font: 500 12px/1.4 var(--font-mono); color: var(--ink-2);
  animation: cqRowIn 9s var(--ease) infinite;
}
.cq-qc-row:nth-child(1) { animation-delay: 0.1s; }
.cq-qc-row:nth-child(2) { animation-delay: 0.5s; }
.cq-qc-row:nth-child(3) { animation-delay: 0.9s; }
.cq-qc-row:nth-child(4) { animation-delay: 1.3s; }
.cq-qc-row .sku { color: var(--ink-2); }
.cq-qc-row .qt { color: var(--ink-3); }
.cq-qc-row .amt { color: var(--ink); font-weight: 500; }
@keyframes cqRowIn {
  0% { opacity: 0; transform: translateY(6px); }
  6%, 88% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(6px); }
}

.cq-qc-foot { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.cq-gauge { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.cq-gauge svg { transform: rotate(-90deg); }
.cq-gauge .trk { stroke: var(--rule-strong); }
.cq-gauge .val {
  stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: 226;
  animation: cqGauge 9s var(--ease) infinite;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 40%, transparent));
}
@keyframes cqGauge { 0%, 12% { stroke-dashoffset: 226; } 40%, 88% { stroke-dashoffset: 76; } 97%, 100% { stroke-dashoffset: 226; } }
.cq-gauge .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cq-gauge .lbl b { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.cq-gauge .lbl span { display: block; font: 500 8px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

.cq-qc-checks { display: grid; gap: 9px; }
.cq-check { display: block; font: 500 11px/1.5 var(--font-mono); color: var(--ink-3); letter-spacing: 0.03em; animation: cqRowIn 9s var(--ease) infinite; }
.cq-check:nth-child(1) { animation-delay: 1.9s; }
.cq-check:nth-child(2) { animation-delay: 2.3s; }
.cq-check:nth-child(3) { animation-delay: 2.7s; }
.cq-check .tick { width: 15px; height: 15px; border-radius: 999px; flex-shrink: 0; margin-right: 9px; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; vertical-align: middle; font-size: 9px; line-height: 1; }
.cq-check b { color: var(--ink); font-weight: 500; }

.cq-stamp {
  position: absolute; right: 22px; bottom: 20px;
  font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 7px 11px; border-radius: var(--r-pill);
  opacity: 0; animation: cqStamp 9s var(--ease) infinite; animation-delay: 3.1s;
  box-shadow: 0 10px 24px -10px var(--accent);
}
@keyframes cqStamp { 0% { opacity: 0; transform: scale(0.97); } 5%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; } }
.cq-scan { position: absolute; left: 0; right: 0; height: 1px; top: 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; animation: cqScan 9s var(--ease) infinite; }
@keyframes cqScan { 0% { top: 12%; opacity: 0; } 8% { opacity: 0.5; } 38% { top: 92%; opacity: 0.3; } 46%, 100% { opacity: 0; } }

/* ─────────────────── TRUST ─────────────────── */
.cq-trust { padding: 26px 0; border-top: 1px solid var(--rule); background: var(--bg-2); }
.cq-trust .shell { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.cq-trust-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─────────────────── BEFORE / AFTER ─────────────────── */
.cq-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.cq-ba-col { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); padding: 32px; }
.cq-ba-col.bad { border-top: 2px solid var(--alert); }
.cq-ba-col.good { border-top: 2px solid var(--accent); }
.cq-ba-h { display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 22px; }
.cq-ba-col.bad .cq-ba-h { color: var(--alert); }
.cq-ba-col.good .cq-ba-h { color: var(--accent); }
.cq-ba-list { list-style: none; margin: 0; padding: 0; }
.cq-ba-list li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.cq-ba-list li:first-child { border-top: none; }
.cq-ba-list li .g { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }
.cq-ba-col.bad .cq-ba-list li .g { color: var(--alert); }
.cq-ba-col.good .cq-ba-list li .g { color: var(--accent); }
.cq-ba-list li b { color: var(--ink); font-weight: 500; }

.cq-leak { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cq-leak-c { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); padding: 28px; }
.cq-leak-v { font-size: clamp(30px, 3.4vw, 44px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.cq-leak-v.warn { color: var(--alert); }
.cq-leak-v.rails { color: var(--accent); }
.cq-leak-l { font-size: 14px; color: var(--ink-2); margin-top: 14px; line-height: 1.5; max-width: 26ch; }

/* ─────────────────── FEATURE ROWS ─────────────────── */
.cq-feat { display: grid; grid-template-columns: 1fr 1.08fr; gap: 72px; align-items: center; }
.cq-feat.flip .cq-feat-copy { order: 2; }
.cq-feat-copy .cq-h2 { max-width: 17ch; }
.cq-feat-ix { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.cq-feat-ix .n { font: 500 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.cq-feat-ix .ln { flex: 1; height: 1px; background: var(--rule); }
.cq-feat-list { list-style: none; margin: 30px 0 0; padding: 0; }
.cq-feat-list li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink); line-height: 1.5; }
.cq-feat-list li:last-child { border-bottom: 1px solid var(--rule); }
.cq-feat-list li .g { color: var(--accent); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.cq-feat-list li b { color: var(--ink); font-weight: 500; }
.cq-feat-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font: 500 13px/1 var(--font); color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color .2s var(--ease); }
.cq-feat-link:hover { border-color: var(--accent); }

/* shared visual frame */
.cq-vis { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); padding: 28px; position: relative; overflow: hidden; box-shadow: 0 30px 70px -45px #0E0E0C40; }
.cq-vis-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cq-vis-h .t { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.cq-vis-h .s { font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: var(--r-pill); white-space: nowrap; }

/* ── cost stack ── */
.cq-stack { display: grid; gap: 12px; }
.cq-stack-row { display: grid; grid-template-columns: 88px 1fr 62px; gap: 14px; align-items: center; }
.cq-stack-row .k { font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cq-stack-row .bar { height: 28px; background: var(--bg-2); border-radius: var(--r-1); overflow: hidden; }
.cq-stack-row .bar i { display: block; height: 100%; border-radius: var(--r-1); width: 0; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); animation: cqGrow 7s var(--ease) infinite; }
.cq-stack-row .v { font: 500 12px/1 var(--font-mono); color: var(--ink); text-align: right; }
.cq-stack-row:nth-child(1) .bar i { animation-delay: 0.1s; --w: 74%; }
.cq-stack-row:nth-child(2) .bar i { animation-delay: 0.4s; --w: 52%; }
.cq-stack-row:nth-child(3) .bar i { animation-delay: 0.7s; --w: 38%; }
.cq-stack-row:nth-child(4) .bar i { animation-delay: 1.0s; --w: 26%; }
@keyframes cqGrow { 0% { width: 0; } 22%, 86% { width: var(--w); } 96%, 100% { width: 0; } }
.cq-stack-total { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; }
.cq-stack-total .k { font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.cq-stack-total .v { font-size: 22px; font-weight: 500; color: var(--accent); letter-spacing: -0.03em; }

/* ── margin floor guardrail ── */
.cq-floor { position: relative; height: 208px; display: flex; align-items: flex-end; gap: 12px; padding-bottom: 26px; }
.cq-floor-col { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.cq-floor-col .b { display: block; border-radius: var(--r-1) var(--r-1) 0 0; background: var(--accent-soft); border-top: 2px solid var(--accent); }
.cq-floor-col.blocked .b { animation: cqBlocked 8s var(--ease) infinite; }
@keyframes cqBlocked {
  0%, 26% { height: 68%; background: var(--accent-soft); border-top-color: var(--accent); }
  44%, 74% { height: 34%; background: #E8643D1F; border-top-color: var(--alert); }
  92%, 100% { height: 68%; background: var(--accent-soft); border-top-color: var(--accent); }
}
.cq-floor-col .cap { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font: 500 9px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cq-floor-line { position: absolute; left: 0; right: 0; bottom: calc(26px + 46%); border-top: 1px dashed var(--alert); pointer-events: none; z-index: 2; }
.cq-floor-line span { position: absolute; right: 0; top: -17px; font: 500 9px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--alert); background: var(--surface); padding: 0 5px; }
.cq-floor-flag {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  color: #FAFAF7; background: var(--alert); padding: 6px 11px; border-radius: var(--r-pill);
  opacity: 0; animation: cqFlag 8s var(--ease) infinite; z-index: 2;
}
@keyframes cqFlag { 0%, 38% { opacity: 0; transform: translateX(-50%) translateY(-4px); } 48%, 72% { opacity: 1; transform: translateX(-50%); } 84%, 100% { opacity: 0; } }
.cq-floor-legend { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; gap: 24px; flex-wrap: wrap; font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cq-floor-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }

/* ── quote pipeline ── */
.cq-pipe { display: grid; position: relative; }
.cq-pipe-step { display: grid; grid-template-columns: 26px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; position: relative; }
.cq-pipe-step + .cq-pipe-step { border-top: 1px solid var(--rule); }
.cq-pipe-step .dot {
  width: 23px; height: 23px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--rule-strong);
  display: grid; place-items: center; font: 500 9px/1 var(--font-mono); color: var(--ink-3);
  position: relative; z-index: 1; animation: cqStepOn 8s var(--ease) infinite;
}
.cq-pipe-step .nm { font-size: 14px; color: var(--ink-2); }
.cq-pipe-step .nm b { color: var(--ink); font-weight: 500; display: block; }
.cq-pipe-step .nm span { font: 500 10px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.cq-pipe-step .ms { font: 500 10px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--ink-3); }
.cq-pipe-step:nth-child(2) .dot { animation-delay: 0.2s; }
.cq-pipe-step:nth-child(3) .dot { animation-delay: 0.9s; }
.cq-pipe-step:nth-child(4) .dot { animation-delay: 1.6s; }
.cq-pipe-step:nth-child(5) .dot { animation-delay: 2.3s; }
.cq-pipe-step:nth-child(6) .dot { animation-delay: 3.0s; }
@keyframes cqStepOn {
  0%, 4% { background: var(--bg-2); border-color: var(--rule-strong); color: var(--ink-3); }
  10%, 86% { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  96%, 100% { background: var(--bg-2); border-color: var(--rule-strong); color: var(--ink-3); }
}
.cq-pipe-rail { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }

/* ─────────────────── THE SWARM ─────────────────── */
.cq-swarm-frame {
  margin-top: 48px; border-radius: var(--r-3); border: 1px solid var(--rule); overflow: hidden;
  background: linear-gradient(160deg, #F0EDE3 0%, #E7E2D4 100%); padding: clamp(20px, 3.4vw, 48px);
  position: relative; box-shadow: 0 40px 90px -55px #0E0E0C55;
}
.cq-swarm-frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 40% 44% at 50% 56%, var(--accent-soft), transparent 68%); opacity: 0.7; }
.cq-swarm-svg { position: relative; width: 100%; height: auto; }
.cq-swarm-svg .node-box { fill: var(--surface); stroke: var(--rule-strong); }
.cq-swarm-svg .node-lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink); }
.cq-swarm-svg .node-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.03em; fill: var(--ink-3); }
.cq-swarm-svg .node-dot { animation: cqNodePulse 4s var(--ease) infinite; }
.cq-swarm-svg .wire { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
.cq-swarm-svg .flow { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 92; animation: cqFlow 3.2s linear infinite; }
@keyframes cqFlow { from { stroke-dashoffset: 97; } to { stroke-dashoffset: 0; } }
@keyframes cqNodePulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.cq-swarm-svg .ring-trk { fill: none; stroke: #0E0E0C1F; stroke-width: 7; }
.cq-swarm-svg .ring-val {
  fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 289; stroke-dashoffset: 289; animation: cqRing 6s var(--ease) infinite;
}
@keyframes cqRing { 0%, 8% { stroke-dashoffset: 289; } 44%, 88% { stroke-dashoffset: 26; } 98%, 100% { stroke-dashoffset: 289; } }
.cq-swarm-svg .ring-bg { fill: var(--surface); }
.cq-swarm-svg .score { font-family: var(--font); font-size: 32px; font-weight: 500; fill: var(--ink); letter-spacing: -0.03em; }
.cq-swarm-svg .score-l { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.2em; fill: var(--ink-3); }
.cq-swarm-svg .veto-l { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.12em; fill: var(--alert); opacity: 0; animation: cqVeto 12s var(--ease) infinite; }
@keyframes cqVeto { 0%, 62% { opacity: 0; } 70%, 80% { opacity: 1; } 88%, 100% { opacity: 0; } }

.cq-swarm-legend { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cq-swarm-legend div { border-left: 2px solid var(--ag); padding-left: 14px; }
.cq-swarm-legend .n { font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ag); }
.cq-swarm-legend .d { font-size: 13px; color: var(--ink-2); margin-top: 7px; line-height: 1.45; }
.ag-1 { --ag: var(--ag-1); } .ag-2 { --ag: var(--ag-2); } .ag-3 { --ag: var(--ag-3); } .ag-4 { --ag: var(--ag-4); }

/* ─────────────────── SAY IT AGAIN ─────────────────── */
.cq-again-l { font: 500 11px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 32px; }
.cq-again-list { display: grid; border-top: 1px solid var(--rule); }
.cq-again-list p {
  font-size: clamp(20px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.028em; color: var(--ink);
  padding: 22px 0; border-bottom: 1px solid var(--rule); line-height: 1.2; margin: 0;
}
.cq-again-list p em { font-style: italic; font-family: "Instrument Serif", Georgia, serif; color: var(--accent); font-weight: 400; }

/* ─────────────────── COMPARE TABLE ─────────────────── */
.cq-table-wrap { margin-top: 44px; border: 1px solid var(--rule); border-radius: var(--r-3); overflow: hidden; background: var(--surface); }
.cq-table { width: 100%; border-collapse: collapse; }
.cq-table th { font: 500 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--rule-strong); }
.cq-table th.us { color: var(--accent); }
.cq-table td { padding: 17px 24px; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.cq-table tr:last-child td { border-bottom: none; }
.cq-table .lb { color: var(--ink); font-weight: 500; }
.cq-table .old { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
.cq-table .win { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); font-weight: 500; }

/* ─────────────────── MARQUEE ─────────────────── */
.cq-marq { position: relative; overflow: hidden; margin-top: 44px; }
.cq-marq::before, .cq-marq::after { content: ""; position: absolute; top: 0; bottom: 0; width: 96px; z-index: 2; pointer-events: none; }
.cq-marq::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.cq-marq::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.cq-marq-track { display: flex; gap: 12px; width: max-content; animation: cqMarq 42s linear infinite; }
.cq-marq-track.rev { animation-direction: reverse; animation-duration: 52s; margin-top: 12px; }
.cq-marq:hover .cq-marq-track { animation-play-state: paused; }
@keyframes cqMarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cq-sys { display: flex; align-items: center; gap: 9px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 12px 18px; font: 500 13px/1 var(--font-mono); color: var(--ink-2); white-space: nowrap; transition: border-color .2s var(--ease), color .2s var(--ease); }
.cq-sys:hover { border-color: var(--accent); color: var(--ink); }
.cq-sys .k { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* ─────────────────── CTA ─────────────────── */
.cq-cta { padding: 124px 0; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.cq-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 78% 20%, var(--accent-soft) 0%, transparent 52%), radial-gradient(ellipse at 10% 90%, #E8643D33 0%, transparent 50%); opacity: 0.4; }
.cq-cta .shell { position: relative; }
.cq-cta-inner { max-width: 62ch; }
.cq-cta .cq-eyebrow { color: #FAFAF799; }
.cq-cta h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 500; margin: 20px 0 0; }
.cq-cta h2 em { color: #D9A8C5; }
.cq-cta .cq-lead { color: #FAFAF7CC; }
.cq-cta .cq-lead strong { color: var(--bg); }
.cq-cta .cq-note { color: #FAFAF788; }
.cq-cta .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cq-cta .btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cq-cta .btn-ghost { background: transparent; color: var(--bg); border-color: #FAFAF733; }
.cq-cta .btn-ghost:hover { background: #FAFAF714; color: var(--bg); }

/* ─────────────────── REVEAL (visible by default) ─────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .cq-rv.in > * { animation: cqRise 640ms var(--ease) both; }
  .cq-rv.in > *:nth-child(2) { animation-delay: 70ms; }
  .cq-rv.in > *:nth-child(3) { animation-delay: 140ms; }
  .cq-rv.in > *:nth-child(4) { animation-delay: 210ms; }
}
@keyframes cqRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cq-qc-row, .cq-check, .cq-stamp, .cq-scan, .cq-gauge .val, .cq-stack-row .bar i,
  .cq-floor-col.blocked .b, .cq-floor-flag, .cq-pipe-step .dot, .cq-swarm-svg .flow,
  .cq-swarm-svg .ring-val, .cq-swarm-svg .node-dot, .cq-swarm-svg .veto-l, .cq-marq-track,
  .cq-badge .d { animation: none !important; }
  .cq-stack-row .bar i { width: var(--w); }
  .cq-qc-row, .cq-check, .cq-stamp { opacity: 1; }
  .cq-gauge .val { stroke-dashoffset: 76; }
  .cq-swarm-svg .ring-val { stroke-dashoffset: 26; }
  .cq-pipe-step .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
}

/* ─────────────────── RESPONSIVE ─────────────────── */
@media (max-width: 1000px) {
  .cq-hero-grid, .cq-feat, .cq-feat.flip { grid-template-columns: 1fr; gap: 44px; }
  .cq-feat.flip .cq-feat-copy { order: 0; }
  .cq-stats { grid-template-columns: repeat(2, 1fr); }
  .cq-ba, .cq-leak, .cq-swarm-legend { grid-template-columns: 1fr; }
  .cq-table .old { display: none; }
}
@media (max-width: 620px) {
  .cq-vis { padding: 22px; }
  .cq-ba-col, .cq-leak-c { padding: 24px; }
}
