/* Shared by the product pages (gateway.html, dispatch.html). Same tokens and components as index.html and
   agents.html, which still carry their own copies inline. */
:root {
  --bg: #FAFAF8;
  --bg-2: #F3F3F0;
  --card: #FFFFFF;
  --line: rgba(12,12,20,.08);
  --line-2: rgba(12,12,20,.13);
  --text: #0B0B10;
  --text-2: #51515B;
  --text-3: #8B8B95;
  --pink: #ec4899;
  --orange: #f97316;
  --sunset: linear-gradient(90deg, var(--pink), var(--orange));
  --accent-dim: rgba(236,72,153,.12);
  --accent-text: #BE185D;
  --ok: #16A34A; --ok-dim: rgba(22,163,74,.1);
  --warn: #D97706; --warn-dim: rgba(217,119,6,.1);
  --err: #E5484D; --err-dim: rgba(229,72,77,.1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --h-from: #0B0B10; --h-to: #5A5A64;
  --g1: #ec4899; --g2: #f43f5e; --g3: #f97316;
  --surface: #FFFFFF;
  --hover: rgba(12,12,20,.04);
  --nav-bg: rgba(250,250,248,.78);
  --dot: #E1E1DD;
  --node-bg: #F5F5F2;
  --glow-v: rgba(236,72,153,.13);
  --glow-l: rgba(249,115,22,.13);
  --win-shadow: 0 0 0 1px rgba(12,12,20,.04), 0 40px 100px -30px rgba(30,30,60,.25), 0 0 80px -30px rgba(236,72,153,.18);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--sans); padding: 13px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.btn-primary { background: #0B0B0C; color: #fff; box-shadow: 0 8px 24px -10px rgba(11,11,12,.5), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: #26262b; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--hover); border-color: var(--text-3); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 8px; }

/* ---------- Nav ---------- */
nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 26px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color .2s; } .nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 156px 0 0; text-align: center; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.glow { position: absolute; left: 50%; top: 380px; width: 1100px; height: 700px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-v), transparent 70%), radial-gradient(closest-side at 60% 60%, var(--glow-l), transparent 70%); filter: blur(30px); }
.hero-inner { position: relative; }
.announce { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 28px; transition: border-color .2s; }
.announce:hover { border-color: var(--text-3); }
.announce b { font: 500 12px var(--sans); color: #fff; background: var(--sunset); padding: 3px 9px; border-radius: 999px; }
h1 { font: 600 clamp(44px, 7vw, 84px)/1.0 var(--sans); letter-spacing: -0.05em; margin-bottom: 24px;
  background: linear-gradient(180deg, var(--h-from) 30%, var(--h-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 span { background: linear-gradient(90deg, var(--g1), var(--g2) 60%, var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-2); max-width: 640px; margin: 0 auto 36px; line-height: 1.5; }

/* ---------- Waitlist ---------- */
.waitlist { display: flex; gap: 6px; max-width: 470px; margin: 0 auto; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); transition: border-color .2s, box-shadow .2s; scroll-margin-top: 160px; }
.waitlist:focus-within { border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-dim); }
.waitlist.err { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-dim); }
.waitlist input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 15px var(--sans); padding: 0 12px; }
.waitlist input::placeholder { color: var(--text-3); }
.waitlist button:disabled { opacity: .7; cursor: default; }
.waitlist .done { flex: 1; padding: 10px 12px; font-size: 15px; color: var(--text); text-align: left; }
.waitlist .done::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: var(--sunset); color: #fff; font-size: 12px; font-weight: 700; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--text-3); min-height: 1.5em; }
.form-note.bad { color: var(--err); }
.form-note .fix { font: inherit; color: var(--accent-text); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.ts { display: flex; justify-content: center; margin-top: 10px; }
.ts:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hero lines ---------- */
/* Curves between the heading and the top of the diagram, drawn by product.js to the box's pixel size: fanning out for Dispatch (data-dir="out"), converging for Gateway (data-dir="in"). */
.hero-top { position: relative; padding-bottom: 96px; }
.hero-top.hold { padding-bottom: 170px; } /* room for the pinch and the fan below it */
.hero-lines { position: absolute; left: 50%; bottom: 0; width: 100vw; height: 100%; transform: translateX(-50%); pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent 15%, #000 70%); mask-image: linear-gradient(transparent 15%, #000 70%); }
/* Lines that start spread across the top edge fade in less */
.hero-lines[data-dir="in"], .hero-lines[data-dir="hold"] { -webkit-mask-image: linear-gradient(transparent 0%, #000 40%); mask-image: linear-gradient(transparent 0%, #000 40%); }
.hero-lines svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-lines .ln { fill: none; stroke: var(--line-2); stroke-width: 1; }
.hero-inner .waitlist { position: relative; box-shadow: 0 10px 30px -14px rgba(30,30,60,.25); }
.hero-lines .pl { fill: none; stroke: url(#heroPulse); stroke-width: 1.5; stroke-linecap: round; opacity: 0; }

/* ---------- Flow diagram ---------- */
/* Senders on the left, Ensue in the middle, receivers on the right. product.js draws the wires between the nodes'
   real positions and sends events along them. */
/* A full-width band, not a card: the hero lines end on its top edge, and its columns run between dashed rules. */
.flow { position: relative; text-align: left; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.5)); }
.flow-inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; border-left: 1px dashed var(--line-2); border-right: 1px dashed var(--line-2); }
.flow-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px dashed var(--line-2); }
.flow-cols span { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); text-align: center; padding: 14px 8px; }
.flow-cols span + span { border-left: 1px dashed var(--line-2); }
.flow-cols span.on { color: var(--accent-text); }
.flow-body { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 340px; padding: 32px 0; }
.flow-body::before, .flow-body::after { content: ""; position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line-2); }
.flow-body::before { left: 33.333%; } .flow-body::after { left: 66.666%; }
.flow-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.flow-wires .w { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.flow-wires .p { fill: none; stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
.flow-wires .p.in { stroke: var(--pink); } .flow-wires .p.out { stroke: var(--orange); } .flow-wires .p.bad { stroke: var(--err); }
.flow-in, .flow-out { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: center; padding: 0 20px; }
.node { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 270px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
  box-shadow: 0 6px 20px -12px rgba(30,30,60,.25); transition: border-color .3s, box-shadow .3s; }
.node .ic { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--node-bg); display: grid; place-items: center; font: 600 13px var(--sans); color: var(--text); }
.node .ic img, .node .ic svg { width: 16px; height: 16px; }
.node .nm { min-width: 0; flex: 1; }
.node .nm b { display: block; font: 500 14px var(--sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .nm small { display: block; font: 11px var(--mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.node .st { opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; }
.node .st.show { opacity: 1; transform: none; }
.node.hit { border-color: rgba(236,72,153,.45); box-shadow: 0 0 0 4px var(--accent-dim); }
.node.hit .nm small { color: var(--accent-text); }
.node.bad { border-color: rgba(229,72,77,.5); box-shadow: 0 0 0 4px var(--err-dim); }
.node.good { border-color: rgba(22,163,74,.45); box-shadow: 0 0 0 4px var(--ok-dim); }
.flow-hub { position: relative; z-index: 2; display: grid; justify-items: center; }
.hub { position: relative; width: 92px; height: 92px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; box-shadow: 0 20px 50px -20px rgba(30,30,60,.35); }
.hub img { width: 52px; height: 52px; border-radius: 13px; }
.hub::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--pink); opacity: 0; }
.hub.hit::after { animation: ring .9s ease-out; }
/* Events waiting in an agent's inbox (data-mode="inbox") */
.hub-count { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; font: 500 11px var(--mono); color: #fff; background: var(--sunset); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; box-shadow: 0 6px 16px -6px rgba(236,72,153,.6); }
.hub-count.show { opacity: 1; transform: none; }
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

/* Status chips */
.st { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { color: var(--ok); background: var(--ok-dim); }
.st.warn { color: var(--warn); background: var(--warn-dim); }
.st.err { color: var(--err); background: var(--err-dim); }
.st.hot { color: var(--accent-text); background: var(--accent-dim); }
.st.mute { color: var(--text-3); background: var(--hover); }

/* ---------- Sections ---------- */
section { padding: 80px 0; position: relative; }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head.c { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); color: var(--accent-text); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 14px; height: 1px; background: var(--accent-text); }
h2 { font: 600 clamp(34px, 4.6vw, 54px)/1.04 var(--sans); letter-spacing: -0.045em; margin-bottom: 18px;
  background: linear-gradient(180deg, var(--h-from) 40%, var(--h-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head p { font-size: 18px; color: var(--text-2); }

/* Three steps across */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: how; }
.how-i { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.how-i .n { font: 500 12px var(--mono); color: var(--text-3); }
.how-i h3 { font: 600 19px var(--sans); letter-spacing: -.02em; }
.how-i p { font-size: 15px; color: var(--text-2); }
.how-i .box { margin-top: auto; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cell { min-width: 0; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s; }
.cell:hover { border-color: var(--line-2); }
.cell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, -100px) var(--my, -100px), rgba(236,72,153,.05), transparent 50%); }
.cell h3 { font: 600 19px var(--sans); letter-spacing: -0.02em; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cell p { color: var(--text-2); font-size: 15px; max-width: 460px; }
.w6 { grid-column: span 6; } .w3 { grid-column: span 3; } .w2 { grid-column: span 2; }
.vis { margin-top: auto; padding-top: 24px; }
.soon { font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }

.box { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font: 12px/1.7 var(--mono); color: var(--text-2); overflow: hidden; }
.box-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; }
.box-row + .box-row { border-top: 1px solid var(--line); }
.box-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-row .dim { color: var(--text-3); }
.box pre { padding: 12px 14px; white-space: pre; overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font: 12px var(--mono); color: var(--text-2); border: 1px solid var(--line); background: var(--bg-2); border-radius: 8px; padding: 6px 10px; }

/* Code sample */
.dev { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.steps { display: grid; margin-top: 8px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font: 500 13px var(--mono); color: var(--text-3); padding-top: 2px; }
.step h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.step p { font-size: 14.5px; color: var(--text-2); }
.code { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #0E0E12; box-shadow: 0 30px 80px -30px rgba(30,30,60,.45), 0 0 60px -20px rgba(236,72,153,.12); min-width: 0; }
.code-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-tabs button { font: 500 12.5px var(--sans); color: #8B8B95; background: none; border: 0; padding: 6px 12px; border-radius: 7px; cursor: pointer; transition: color .2s, background .2s; }
.code-tabs button:hover { color: #D4D4D8; }
.code-tabs button.on { background: rgba(255,255,255,.08); color: #fff; }
.code pre { padding: 22px; font: 13px/1.75 var(--mono); color: #D4D4D8; overflow-x: auto; }
.code pre[hidden], .code .resp[hidden] { display: none; }
.ck { color: #A78BFA; } .cs { color: #F9A8D4; } .cn { color: #FDBA74; } .cc { color: #6B6B75; } .cp { color: #67E8F9; }
.code .resp { border-top: 1px solid rgba(255,255,255,.08); padding: 12px 22px; font: 12.5px var(--mono); color: #8B8B95; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Comparison: what you'd build vs what's included */
.vs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.vs > div { padding: 28px; }
.vs > div + div { border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(236,72,153,.04), var(--card) 60%); }
.vs h3 { font: 600 17px var(--sans); letter-spacing: -.02em; margin-bottom: 16px; }
.vs ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.vs li { display: flex; gap: 10px; }
.vs li::before { content: "–"; color: var(--text-3); flex: none; width: 14px; }
.vs > div + div li::before { content: "✓"; color: var(--accent-text); }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; padding: 96px 0 104px; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 500px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(249,115,22,.12), transparent), radial-gradient(closest-side at 30% 60%, rgba(236,72,153,.16), transparent); filter: blur(20px); pointer-events: none; }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(38px, 5.6vw, 66px); }
.cta p { color: var(--text-2); font-size: 18px; max-width: 600px; margin: 0 auto 30px; }
.cta .waitlist { margin-top: 28px; }
.cta .form-note { font-size: 13.5px; color: var(--text-3); margin: 14px auto 0; }
.cta .form-note.bad { color: var(--err); }
.cta .form-note:empty { min-height: 0; margin: 0; } /* only shows errors */
.cta .alt { margin-top: 22px; font-size: 14.5px; color: var(--text-3); }
.cta .alt a { color: var(--text); border-bottom: 1px solid var(--line-2); }


.reveal { opacity: 0; transform: translateY(20px); filter: blur(4px); transition: opacity .8s ease, transform .8s ease, filter .8s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .w6 { grid-column: span 2; } .w3, .w2 { grid-column: span 1; }
  .how { grid-template-columns: 1fr; }
  .dev { grid-template-columns: 1fr; gap: 48px; }
  .flow-in, .flow-out { padding: 0 12px; }
  .node { padding: 9px 11px; gap: 9px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 120px; }
  section { padding: 56px 0; }
  .bento { grid-template-columns: 1fr; }
  .w6, .w3, .w2 { grid-column: span 1; }
  .cell { padding: 22px; }
  .vs { grid-template-columns: 1fr; } .vs > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-top { padding-bottom: 64px; }
  .hero-top.hold { padding-bottom: 130px; }
  .flow-inner { width: 100%; border-left: 0; border-right: 0; }
  /* Narrow screens: icons only on the sides, so the wires still have room */
  .flow-body { grid-template-columns: 1fr 1.2fr 1fr; min-height: 0; padding: 28px 0; }
  .flow-cols span { font-size: 10px; letter-spacing: .06em; padding: 12px 4px; }
  .flow-in, .flow-out { padding: 0 6px; gap: 12px; }
  .node { width: auto; padding: 5px; border-radius: 50%; }
  .node .nm { display: none; }
  .node .st { display: none; }
  .hub { width: 72px; height: 72px; border-radius: 20px; } .hub img { width: 40px; height: 40px; }
    }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Plain hero (contact, solutions, integrations): no flow diagram underneath ---------- */
.hero.plain { padding-bottom: 64px; }
.hero.plain .grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 70%); }
.hero.plain .glow { top: -100px; height: 500px; } /* fades out above the hero's bottom edge, which clips it */
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Solution pages ---------- */
.pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pt { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 26px; }
.pt .pi { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--node-bg); display: grid; place-items: center; color: var(--accent-text); margin-bottom: 18px; }
.pt .pi svg { width: 18px; height: 18px; }
.pt h3 { font: 600 17px var(--sans); letter-spacing: -.02em; margin-bottom: 6px; }
.pt p { font-size: 14.5px; color: var(--text-2); }
.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.use { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 22px; min-width: 0; }
.use .logos { display: flex; }
.use .logos span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--node-bg); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--card); }
.use .logos span + span { margin-left: -8px; }
.use .logos img, .use .logos svg { width: 17px; height: 17px; }
.use h3 { font: 600 16px var(--sans); letter-spacing: -.01em; margin-bottom: 4px; }
.use p { font-size: 14.5px; color: var(--text-2); }
.use .route { margin-top: 10px; font: 12px var(--mono); color: var(--text-3); overflow-wrap: anywhere; }
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prod { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 24px; transition: border-color .2s, box-shadow .2s; }
.prod:hover { border-color: rgba(236,72,153,.4); box-shadow: 0 0 0 4px var(--accent-dim); }
.prod b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.prod span { font-size: 14.5px; color: var(--text-2); }
.prod i { font-style: normal; margin-top: 8px; font: 500 13px var(--mono); color: var(--accent-text); }

/* ---------- Integrations ---------- */
.int-filter { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.int-filter button { font: 500 13px var(--sans); color: var(--text-2); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.int-filter button:hover { color: var(--text); border-color: var(--text-3); }
.int-filter button.on { color: #fff; background: #0B0B0C; border-color: #0B0B0C; }
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.int { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); min-width: 0; }
.int[hidden] { display: none; }
.int .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--node-bg); display: grid; place-items: center; }
.int .ic img, .int .ic svg { width: 20px; height: 20px; }
.int b { display: block; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int small { display: block; font: 11.5px var(--mono); color: var(--text-3); }
.int-note { text-align: center; margin-top: 28px; font-size: 14.5px; color: var(--text-3); }
.int-note a { color: var(--text); border-bottom: 1px solid var(--line-2); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-side h2 { font-size: 26px; margin-bottom: 18px; }
.expect { list-style: none; display: grid; gap: 16px; margin-bottom: 28px; }
.expect li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--text-2); }
.expect .pi { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--accent-text); }
.expect .pi svg { width: 16px; height: 16px; }
.expect a, .side-note a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.side-note { font-size: 14px; color: var(--text-3); padding-top: 20px; border-top: 1px solid var(--line); }
.form-card { border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); padding: 30px; box-shadow: 0 30px 80px -40px rgba(30,30,60,.3); }
.form-card form { display: grid; gap: 18px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .topics legend { font-size: 13.5px; font-weight: 500; color: var(--text); }
.field label .opt { font-weight: 400; color: var(--text-3); margin-left: 4px; }
.field input, .field textarea { width: 100%; font: 15px var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-dim); background: var(--card); }
.field [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-dim); }
.field ::placeholder { color: var(--text-3); }
.topics { border: 0; display: grid; gap: 8px; }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic .pi { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--node-bg); display: grid; place-items: center; color: var(--text-2); }
.topic .pi svg { width: 15px; height: 15px; }
.topic b { display: block; font-size: 14px; font-weight: 500; }
.topic small { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.topic:hover { border-color: var(--text-3); }
.topic:has(input:checked) { border-color: rgba(236,72,153,.5); background: rgba(236,72,153,.04); box-shadow: 0 0 0 3px var(--accent-dim); }
.topic:has(input:checked) .pi { color: var(--accent-text); }
.topic:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.f-err { font-size: 13px; color: var(--err); min-height: 0; }
.f-err:empty { display: none; }
.send-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.send-hint { font-size: 13px; color: var(--text-3); }
.send-hint[hidden] { display: none; }
/* Muted until the Turnstile check passes */
.form-card .submit:disabled { background: var(--line-2); color: var(--text-3); box-shadow: none; cursor: not-allowed; }
.form-card .ts { justify-content: flex-start; margin-top: 0; min-height: 65px; }
.form-card .ts:empty { display: flex; }
.sent { text-align: center; padding: 28px 8px; display: grid; justify-items: center; gap: 10px; }
.sent[hidden] { display: none; }
.sent .ok-i { width: 48px; height: 48px; border-radius: 50%; background: var(--sunset); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.sent h2 { font-size: 28px; margin: 0; }
.sent p { color: var(--text-2); margin-bottom: 8px; }

@media (max-width: 1000px) {
  .pts, .prods { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .pts, .prods { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: 1fr 1fr; }
  .int { padding: 11px; gap: 10px; }
  .f-row, .topic-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .use { grid-template-columns: 1fr; }
}

/* ---------- Pipeline canvas (solution pages) ---------- */
/* One flow per solution: a source, the Ensue hub, and one lane per destination with its step on the line, as cards
   on a dotted canvas. product.js places the steps, draws the lanes and scales the board to fit. Below 900px the
   cards stack in order and the lanes are hidden. */
.hero.sol { padding-bottom: 0; }
.hero.sol .lede { margin-bottom: 30px; }
.cv-wrap { position: relative; margin-top: 56px; padding: 36px 0 72px;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); }
.cv-fit { position: relative; width: min(1160px, calc(100% - 48px)); margin: 0 auto; text-align: left; }
.cv { position: relative; width: 1160px; height: 640px; transform-origin: 0 0; }
.cv-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cv-wires .w { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.cv-wires .p { fill: none; stroke: url(#cvPulse); stroke-width: 2.5; stroke-linecap: round; opacity: 0; }

.cv-card { position: absolute; z-index: 1; width: 320px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card);
  box-shadow: 0 1px 0 rgba(12,12,20,.03), 0 14px 34px -18px rgba(30,30,60,.28); transition: border-color .3s, box-shadow .3s; }
.cv-card.hit { border-color: rgba(236,72,153,.5); box-shadow: 0 0 0 4px var(--accent-dim), 0 14px 34px -18px rgba(30,30,60,.28); }
.cv-card.bad { border-color: rgba(229,72,77,.5); box-shadow: 0 0 0 4px var(--err-dim); }
.cv-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; min-width: 0; }
.cv-h > b { flex: 1; min-width: 0; font: 500 15px var(--mono); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-logo { width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--line); background: var(--node-bg); display: grid; place-items: center; color: var(--text); }
.cv-logo img, .cv-logo svg { width: 16px; height: 16px; }
.cv-copy { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--sans); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 9px; white-space: nowrap; }
.cv-copy svg { width: 13px; height: 13px; }
.cv-k { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px 0; font-size: 12.5px; color: var(--text-3); }
.cv-k b { font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cv-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; padding: 8px 16px 16px; box-sizing: content-box; }
.cv-bars i { flex: 1; border-radius: 2px; background: var(--ok); opacity: .7; min-height: 2px; }
.cv-bars i.lo { background: var(--line-2); opacity: 1; }
.cv-bars i.bad { background: linear-gradient(var(--err) 0 30%, var(--ok) 30%); }

/* Steps */
.cv-step { width: 310px; overflow: hidden; }
.cv-sh { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--hover);
  font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.cv-sh svg { width: 15px; height: 15px; }
.cv-sb { padding: 13px 16px 15px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.cv-sb em { font-style: normal; font-weight: 500; color: var(--accent-text); }
.cv-sb pre { font: 12.5px/1.7 var(--mono); color: var(--text-2); white-space: pre; overflow: hidden; }
.cv-sb pre .k { color: var(--accent-text); } .cv-sb pre .d { color: var(--text-3); }

/* Destinations */
.cv-dst { width: 310px; }
.cv-dst .st { flex: none; transition: color .3s, background .3s; }
.cv-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.cv-foot b { font: 500 12.5px var(--mono); color: var(--text-2); font-variant-numeric: tabular-nums; }
.cv-dst.off { background: var(--bg-2); }
.cv-dst.off .cv-h > b { color: var(--text-3); }

/* Route boards: one lane per destination, with its steps sitting on the line */
.cv.routes .cv-wires .w { stroke: var(--line-2); transition: stroke .3s; }
.cv.routes .cv-wires .w.live { stroke: url(#cvPulse); stroke-width: 2.5; }
.cv.routes .cv-dst { width: 320px; }

/* On a route board a step shows only its name until an event reaches it, then opens to show what it did */
.cv.routes .cv-step .cv-sh { border-bottom-color: transparent; transition: border-color .3s, background .3s; }
.cv.routes .cv-step .cv-sb { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0;
  transition: max-height .45s cubic-bezier(.3,0,.2,1), padding .45s cubic-bezier(.3,0,.2,1), opacity .25s; }
.cv.routes .cv-step.open .cv-sh { border-bottom-color: var(--line); }
.cv.routes .cv-step.open .cv-sb { max-height: 200px; padding-top: 13px; padding-bottom: 14px; opacity: 1; transition-delay: 0s, 0s, .1s; }
.cv.routes .cv-step .ln { display: inline-block; }
.cv.routes .cv-step.open .ln { animation: lnIn .35s both; }
.cv.routes .cv-step.open .ln:nth-child(2) { animation-delay: .12s; }
.cv.routes .cv-step.open .ln:nth-child(3) { animation-delay: .24s; }
.cv.routes .cv-step.open .ln:nth-child(4) { animation-delay: .36s; }
@keyframes lnIn { from { opacity: 0; transform: translateX(-6px); } }
.cv-out { margin-top: 10px; padding: 7px 10px; border-radius: 8px; font: 500 12px var(--mono); color: var(--text-3); background: var(--hover);
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.cv-out.show { opacity: 1; transform: none; }
.cv-out.ok { color: var(--ok); background: var(--ok-dim); }
.cv-out.bad { color: var(--err); background: var(--err-dim); }

/* The Ensue hub every event passes through on a route board */
.cv-hub { position: absolute; z-index: 2; width: 68px; height: 68px; border-radius: 19px; border: 1px solid var(--line-2); background: var(--card);
  display: grid; place-items: center; box-shadow: 0 18px 40px -18px rgba(30,30,60,.45); transition: border-color .3s, box-shadow .3s; }
.cv-hub img { width: 40px; height: 40px; border-radius: 11px; }
.cv-hub b { position: absolute; top: calc(100% + 9px); left: 50%; translate: -50% 0; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.cv-hub::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--pink); opacity: 0; }
.cv-hub.hit { border-color: rgba(236,72,153,.5); box-shadow: 0 0 0 5px var(--accent-dim), 0 18px 40px -18px rgba(30,30,60,.45); }
.cv-hub.hit::after { animation: ring .9s ease-out; }

/* A destination's latest attempts, oldest first */
.cv-att { display: flex; gap: 4px; padding: 9px 16px 0; }
.cv-att i { flex: 1; height: 18px; border-radius: 4px; background: var(--ok); opacity: .7; }
.cv-att i.err { background: var(--err); opacity: .85; }
.cv-att i.new { animation: attIn .4s ease-out; }
@keyframes attIn { from { transform: scaleY(.2); opacity: 0; } }

/* Narrow screens: no board, the cards stack with a short connector between them */
@media (max-width: 899px) {
  .cv-wrap { margin-top: 36px; padding: 24px 0 56px; -webkit-mask-image: none; mask-image: none; }
  .cv-fit { width: 100%; height: auto !important; }
  .cv { width: auto !important; height: auto !important; transform: none !important; display: grid; gap: 22px; padding: 0 16px; }
  .cv-wires { display: none; }
  .cv-card { position: relative; left: auto !important; top: auto !important; width: 100%; max-width: 420px; margin: 0 auto; }
  .cv > :not(svg) + .cv-card::before, .cv > .cv-card + .cv-hub::before { content: ""; position: absolute; left: 50%; top: -23px; height: 22px; border-left: 1.5px dashed rgba(236,72,153,.45); }
  .cv-hub { position: relative; left: auto !important; top: auto !important; margin: 0 auto 22px; }
  .cv.routes .cv-step .cv-sb { max-height: none; padding-top: 13px; padding-bottom: 14px; opacity: 1; }
  .cv.routes .cv-step .cv-sh { border-bottom-color: var(--line); }
  .cv-out { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cv.routes .cv-step .cv-sb { max-height: none; padding-top: 13px; padding-bottom: 14px; opacity: 1; }
  .cv-out { display: none; }
}
