:root {
  --violet: #5B3EE8;
  --violet-deep: #3E26B8;
  --violet-tint: #F3F0FF;
  --violet-soft: #E3DDFF;
  --ink: #0B0C1A;
  --ink-2: #3B3F55;
  --ink-3: #565B73;
  --paper: #FFFFFF;
  --rule: #E4E6EE;
  --rule-2: #C9CCDA;
  --on-violet: #FFFFFF;
  --on-violet-2: #E8E3FF;
  --green: #0F6B49;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scrollbar-color: var(--rule-2) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--violet);
}
::selection { background: var(--violet); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:not(.btn):hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 3px; }
.impact :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -56px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; max-width: 18ch; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
.accent { color: var(--violet); }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 32ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 8px; font: 600 17px/1.3 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--violet); padding-bottom: 2px; }
.link-arrow:hover { color: var(--violet); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: block; margin-right: auto; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { font-size: 16px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.site-header nav a:hover { color: var(--violet); }

/* Hero */
.dots { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%235B3EE8' fill-opacity='.13'/%3E%3C/svg%3E"); background-size: 24px 24px; }
.hero { padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.hero-copy { text-align: center; display: grid; justify-items: center; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 28px; max-width: 36ch; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.35; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 36px; }

/* Layered diagram */
.viz { margin: clamp(48px, 6vw, 80px) auto 0; max-width: 1040px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 12px; overflow: hidden; text-align: left; }
.viz-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 22px; background: var(--violet-tint); border-bottom: 1px solid var(--rule); font: 500 13px/1.4 var(--mono); color: var(--ink-2); }
.viz-body { padding: clamp(18px, 3vw, 32px); display: grid; }
.lane { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0 28px; align-items: center; }
.lane-head { display: grid; gap: 2px; }
.lane-head strong { font: 600 22px/1.3 var(--display); letter-spacing: -0.02em; }
.lane-head span { font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.lane-gap { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0 28px; }
.ports { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; height: 36px; }
.ports i { justify-self: center; width: 2px; height: 100%; background: var(--violet); position: relative; }
.ports i::before, .ports i::after { content: ""; position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.ports i::before { top: -2px; }
.ports i::after { bottom: -2px; }
.nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.nodes li { position: relative; display: grid; justify-items: start; gap: 10px; padding: 14px 14px 14px; border: 1px solid var(--violet); border-radius: 10px; background: var(--paper); color: var(--ink); align-content: start; }
.ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--violet-tint); color: var(--violet); }
.ico svg { width: 20px; height: 20px; }
.nt { font-size: 16px; font-weight: 600; line-height: 1.3; }
.nodes small { font: 500 12px/1.3 var(--mono); color: var(--violet-deep); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 32px; right: -20px; width: 20px; height: 2px; background: var(--violet); }
.flow li:not(:last-child)::before { content: ""; position: absolute; top: 27px; right: -21px; width: 8px; height: 12px; background: var(--violet); clip-path: polygon(0 0, 100% 50%, 0 100%); z-index: 1; }
.nodes .gate { background: var(--violet); border-color: var(--violet); color: #fff; }
.nodes .gate .ico { background: rgba(255, 255, 255, .18); color: #fff; }
.nodes .gate small { color: var(--on-violet-2); }
.nodes.base li { border-color: var(--rule-2); background: var(--paper); }
.nodes.base .ico { background: var(--violet-tint); color: var(--ink-2); }
.bar { padding: 22px 24px; background: var(--violet); color: #fff; border-radius: 10px; }
.bar p { font: 500 clamp(17px, 1.7vw, 21px)/1.35 var(--font); max-width: 40ch; }

/* Isometric diagram */
.viz-body:has(.iso-wrap) { padding: clamp(8px, 2vw, 24px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%235B3EE8' fill-opacity='.12'/%3E%3C/svg%3E"); background-size: 24px 24px; }
.iso-stage { position: relative; container-type: inline-size; aspect-ratio: 1000 / 850; max-width: none; margin: 0 auto; }
.iso { width: 100%; height: 100%; display: block; }
.callout { position: absolute; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1cqw; align-items: center; padding: 1.1cqw 1.3cqw; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 8px; }
.callout.hot { border-color: var(--violet); }
.callout strong { display: block; font: 600 1.75cqw/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.callout div > span { display: block; font-size: 1.45cqw; line-height: 1.35; color: var(--ink-3); }
.callout .ck { display: grid; place-items: center; width: 3.6cqw; height: 3.6cqw; border-radius: 6px; background: var(--violet); color: #fff; }
.callout .ck.quiet { background: var(--violet-tint); color: var(--ink-2); }
.callout .ck svg { width: 62%; height: 62%; }
.lanes-wrap { display: none; }


/* Isometric diagram motion: layers assemble once, one case packet climbs to the approval gate */
.iso-stage.js-anim .plane { opacity: 0; transform: translateY(46px); }
.iso-stage.js-anim.is-in .plane { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .95s var(--ease); }
.iso-stage.js-anim.is-in .p1 { transition-delay: .2s; }
.iso-stage.js-anim.is-in .p2 { transition-delay: .4s; }
.iso-stage.js-anim .leader, .iso-stage.js-anim .callout { opacity: 0; }
.iso-stage.js-anim.is-in .leader, .iso-stage.js-anim.is-in .callout { opacity: 1; transition: opacity .6s var(--ease) 1s; }
.iso-stage.js-anim.is-in .callout.hot[data-state="idle"] { opacity: .62; transition: opacity .3s var(--ease); }
@keyframes march { to { stroke-dashoffset: -18; } }
.iso-stage.is-in .link { animation: march 1.5s linear infinite; }
.iso-stage.is-paused .link, .iso-stage.is-paused .packet-ring { animation-play-state: paused; }
.packet { transition: opacity .45s var(--ease); }
.packet.gone { opacity: 0; }
.packet-ring { fill: var(--violet); fill-opacity: .2; transform-box: fill-box; transform-origin: center; }
.packet-dot { fill: var(--violet); stroke: #fff; stroke-width: 2.5; }
.packet.waiting .packet-ring { animation: wait-pulse 1.6s var(--ease) infinite; }
@keyframes wait-pulse { 0% { transform: scale(.8); fill-opacity: .35; } 100% { transform: scale(1.9); fill-opacity: 0; } }
.ripple { fill: none; stroke: var(--violet); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.approve { margin-top: .9cqw; padding: .75cqw 1.5cqw; border: 0; border-radius: 6px; background: var(--violet); color: #fff; font: 600 1.5cqw/1.3 var(--font); cursor: pointer; transition: background-color .2s var(--ease); }
.approve:hover { background: var(--ink); }
.approve[hidden] { display: none; }
.callout.hot[data-state="approved"] { border-color: var(--green); }
.callout.hot[data-state="approved"] .ck { background: var(--green); }
@media (prefers-reduced-motion: reduce) {
  .iso-stage .link, .iso-stage .packet-ring { animation: none; }
}

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.tint { background-color: var(--violet-tint); }
.section > .wrap > h2 { margin-bottom: clamp(36px, 5vw, 64px); }

/* Pains */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.pains > div { border-top: 3px solid var(--ink); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.pains p { color: var(--ink-3); }

/* Stages */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.stages li { display: grid; gap: 12px; align-content: start; }
.stages svg { width: 44px; height: 44px; color: var(--violet); margin-bottom: 8px; }
.step-no { font: 500 14px/1 var(--mono); color: var(--violet); }
.chips { list-style: none; margin: calc(-1 * clamp(12px, 2vw, 28px)) 0 clamp(36px, 5vw, 56px); padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border: 1px solid var(--violet); border-radius: 6px; font: 500 14px/1.3 var(--mono); color: var(--violet-deep); background: var(--paper); }
.stages h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.03em; font-weight: 600; }
.stages p { color: var(--ink-2); max-width: 20ch; font-size: 17px; }
.gate-line { margin-top: clamp(40px, 5vw, 64px); padding: 20px 24px; background: var(--paper); border: 2px solid var(--violet); border-radius: 8px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.gate-line strong { color: var(--ink); font-weight: 700; }

/* Impact: solid brand violet */
.impact { background: var(--violet); color: var(--on-violet); padding: var(--section) 0; }
.impact h2 { margin-bottom: clamp(36px, 5vw, 64px); }
.results { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); }
.results > div { border-top: 2px solid #fff; padding-top: 18px; display: grid; gap: 4px; }
.results dd { margin: 0; }
.results .big { font-family: var(--display); font-size: clamp(64px, 8vw, 104px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.results dt { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-violet-2); max-width: 18ch; }
.results-note { margin-top: 40px; font-size: 15px; color: var(--on-violet-2); }

/* Access */
.access-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.access-copy .lede { margin-top: 24px; }
.lead-form { background: var(--violet-tint); border-radius: 12px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.lead-form input:not([type="hidden"]), .lead-form textarea { width: 100%; padding: 13px 14px; font: 400 17px/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 8px; transition: border-color .2s var(--ease); }
.lead-form input:hover, .lead-form textarea:hover { border-color: var(--ink-3); }
.lead-form input:focus-visible, .lead-form textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 0; border-color: var(--violet); }
.lead-form ::placeholder { color: #6A6F85; }
.lead-form textarea { resize: vertical; min-height: 88px; }
.lead-form button { justify-self: start; }
.lead-form button:disabled { opacity: .65; cursor: wait; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.grecaptcha-badge { visibility: hidden; }
#access-confirm { color: var(--green); font-size: 16px; font-weight: 600; }
#access-error { color: #A12222; font-size: 16px; }

/* Footer */
.site-footer { padding: 36px 0; border-top: 1px solid var(--rule); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-3); }
.footer-brand img { height: 20px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a, #a11y-toggle { font: 500 14px/1.4 var(--font); color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.site-footer nav a:hover, #a11y-toggle:hover { color: var(--violet); }

/* Accessibility panel (outside #page so filters never reposition it) */
#a11y-panel { position: fixed; left: 24px; bottom: 24px; z-index: 60; width: 248px; padding: 14px; display: grid; gap: 6px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: 0 2px 6px rgba(11, 12, 26, .1), 0 14px 28px -8px rgba(11, 12, 26, .2); }
.a11y-head { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 6px; }
.a11y-head button { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; }
#a11y-panel [data-a11y-action] { text-align: left; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--violet-tint); font: 500 14px/1.3 var(--font); color: var(--ink); cursor: pointer; }
#a11y-panel [data-a11y-action]:hover { border-color: var(--violet); background: var(--paper); }
html.a11y-contrast #page { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast #page img, html.a11y-contrast #page video { filter: invert(1) hue-rotate(180deg); }
html.a11y-underline-links a { text-decoration: underline !important; }

/* Responsive */
@media (max-width: 1080px) {
  .access-grid { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pains, .results { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .viz-body:has(.iso-wrap) { padding: 8px 8px 16px; }
  .iso-stage { aspect-ratio: auto; overflow: hidden; display: grid; gap: 10px; container-type: normal; }
  .iso { width: 134%; max-width: none; height: auto; aspect-ratio: 1000 / 850; margin-left: -17%; }
  .iso .leader { display: none; }
  .callout { position: static !important; width: auto !important; margin: 0 8px; padding: 12px 14px; gap: 12px; }
  .callout strong { font-size: 16px; }
  .callout div > span { font-size: 14px; }
  .callout .ck { width: 36px; height: 36px; }
  .approve { margin-top: 10px; padding: 10px 18px; font-size: 15px; }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lane-gap { display: none; }
  .lane-gap + .lane { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
  .lane-head { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
  .nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .flow li::before, .flow li::after { display: none; }
  .nodes li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .site-header nav { display: none; }
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .lead-form button { justify-self: stretch; }
  .header-row .btn { padding: 9px 13px; }
  #a11y-panel { left: 12px; right: 12px; width: auto; }
}
@media (max-width: 480px) {
  .stages { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Layer-story hero: bottom = your systems, middle = built from your needs, top = agents that run it */

.viz.lv { max-width: 1080px; }
.lv-body { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(16px, 3vw, 36px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%235B3EE8' fill-opacity='.12'/%3E%3C/svg%3E"); background-size: 24px 24px; }
.lv-stage { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 456 / 842; }
.lv-stage .iso { aspect-ratio: auto; width: 100%; height: 100%; max-width: none; margin: 0; display: block; overflow: visible; }

/* motion states: only hidden when JS drives the build */
.lv-stage.js-anim .rise { opacity: 0; transform: translateY(-24px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.lv-stage.js-anim .layer.rise { transform: translateY(22px); }
.lv-stage.js-anim .rise.on { opacity: 1; transform: none; }
.beam { opacity: .55; transition: opacity .5s var(--ease), stroke-width .3s var(--ease); }
.lv-stage.js-anim .beam { opacity: 0; }
.lv-stage.js-anim .beam.on { opacity: .55; animation: march 1.4s linear infinite; }
.lv-stage.js-anim .beam.fire { opacity: 1; stroke: var(--violet-deep); stroke-width: 3.6; }
.lv-stage .blk, .lv-stage .agt { transition: opacity .5s var(--ease), transform .7s var(--ease), filter .3s var(--ease); }
.lv-stage .blk.fire, .lv-stage .agt.fire { filter: drop-shadow(0 0 7px rgba(91, 62, 232, .55)); }
.lv-stage.is-paused .beam.on, .lv-stage.is-paused .link, .lv-stage.is-paused .packet-ring { animation-play-state: paused; }
.lv-stage.is-in .link { animation: march 1.5s linear infinite; }
.ghost { fill: none; stroke: var(--violet); stroke-opacity: .5; stroke-width: 1.5; stroke-dasharray: 4 4; }
.token .packet-dot { fill: #fff; stroke: var(--violet); stroke-width: 3.2; }
.token .packet-ring { fill-opacity: .28; }
.lv-stage.js-anim .item { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.packet.q2 .packet-dot { fill: var(--violet-deep); }
.packet.q3 .packet-dot { fill: #7C66F0; }

/* panel */
.lv-panel { display: grid; gap: 18px; align-content: center; min-width: 0; }
.lv-h { font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -0.02em; }
.lv-note { font: 500 13px/1.45 var(--mono); color: var(--ink-3); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px; opacity: .42; transition: opacity .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease); }
.steps > li.is-done { opacity: .78; }
.steps > li.is-active { opacity: 1; background: var(--paper); border-color: var(--violet); }
.steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--violet-tint); color: var(--violet-deep); font: 500 15px/1 var(--mono); transition: background-color .3s, color .3s; }
.steps .is-active .n { background: var(--violet); color: #fff; }
.steps strong { display: block; font: 600 clamp(18px, 1.7vw, 22px)/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.steps li > div > span { display: block; margin-top: 2px; font-size: 16px; line-height: 1.4; color: var(--ink-3); }
.needs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.needs li { position: relative; padding: 6px 12px 6px 28px; border: 1px solid var(--rule-2); border-radius: 6px; font: 500 12.5px/1.3 var(--mono); color: var(--ink-3); background: var(--paper); transition: all .3s var(--ease); }
.needs li::before { content: ''; position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; border: 1.5px solid var(--rule-2); transition: all .3s var(--ease); }
.needs li.doing { border-color: var(--violet); color: var(--violet-deep); }
.needs li.doing::before { border-color: var(--violet); background: var(--violet-tint); }
.needs li.done { border-color: var(--violet); background: var(--violet-tint); color: var(--violet-deep); }
.needs li.done::before { border-color: var(--violet); background: var(--violet); }
.replay { justify-self: start; padding: 8px 14px; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--paper); color: var(--ink-2); font: 500 13px/1.3 var(--mono); cursor: pointer; }
.replay:hover { border-color: var(--violet); color: var(--violet-deep); }

.gate-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 12px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--violet); border-radius: 8px; transition: border-color .3s var(--ease); }
.gate-card .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rule-2); transition: background-color .3s; }
.gate-card[data-state="ready"] .dot { background: var(--violet); box-shadow: 0 0 0 5px rgba(91, 62, 232, .18); }
.gate-card[data-state="approved"] { border-color: var(--green); }
.gate-card[data-state="approved"] .dot { background: var(--green); }
.gate-card strong { display: block; font: 600 17px/1.25 var(--display); color: var(--ink); }
.gate-card .gate-sub { display: block; font-size: 14.5px; line-height: 1.35; color: var(--ink-3); }
.gate-card .approve { margin: 0; padding: 10px 20px; font: 600 15px/1.3 var(--font); }
.gate-card .approve.pressed { background: var(--ink); transform: scale(.96); }
.gate-card[data-state="idle"] { border-color: var(--rule-2); }

/* variant B: switches */
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease), opacity .25s; }
.opt:disabled { cursor: default; opacity: .5; }
.opt[aria-checked="true"] { border-color: var(--violet); }
.opt .sw { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--rule-2); transition: background-color .25s var(--ease); }
.opt .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.opt[aria-checked="true"] .sw { background: var(--violet); }
.opt[aria-checked="true"] .sw::after { transform: translateX(18px); }
.opt strong { display: block; font: 600 17px/1.25 var(--display); }
.opt .t > span { display: block; font-size: 14.5px; color: var(--ink-3); }
.opt .t > span b { font-weight: 600; color: var(--violet-deep); }
.opt.locked { cursor: not-allowed; }
.opt.locked:disabled { opacity: 1; }
.opt:focus-visible, .replay:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.opt.pulse { animation: opt-pulse 1.4s var(--ease) 2; }
@keyframes opt-pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 62, 232, .4); } 100% { box-shadow: 0 0 0 12px rgba(91, 62, 232, 0); } }

/* variant C: live */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats > div { padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper); }
.stats b { display: block; font: 600 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -0.02em; color: var(--violet-deep); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 4px; font: 500 12.5px/1.3 var(--mono); color: var(--ink-3); }
.stats > div.hot { border-color: var(--violet); background: var(--violet-tint); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; min-height: 252px; align-content: start; border-top: 1px solid var(--rule-2); }
.feed li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 2px; border-bottom: 1px solid var(--rule-2); font-size: 16px; line-height: 1.35; color: var(--ink-2); animation: feed-in .5s var(--ease); }
.feed li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.feed li.you { color: var(--ink); font-weight: 600; }
.feed li.you::before { background: var(--green); }
.feed li.wait::before { background: var(--violet); box-shadow: 0 0 0 4px rgba(91, 62, 232, .2); }
.feed li:nth-child(n+2) { opacity: .8; }
.feed li:nth-child(n+4) { opacity: .5; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .lv-body { grid-template-columns: minmax(0, 1fr); }
  .lv-stage { max-width: 420px; }
  /* A on small screens: show only the current step, above the diagram, so the story stays in view */
  .lv-panel:has(.steps) { order: -1; gap: 0; }
  .lv-panel:has(.steps) .steps { min-height: 214px; align-content: start; }
  .steps > li:not(.is-active) { display: none; }
  .replay { display: none; }
}
@media (max-width: 480px) {
  .stats b { font-size: 26px; }
  .gate-card { grid-template-columns: auto minmax(0, 1fr); }
  .gate-card .approve { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .feed li, .opt.pulse { animation: none; }
}

/* Hero lede: three pains the reader recognises, then the resolution */
.hero .lede-pains { max-width: 40ch; font: 600 clamp(26px, 3.1vw, 42px)/1.2 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.hero .lede-pains span { display: block; }
.hero .lede-pains span + span { margin-top: 4px; }
.hero .lede-pains .do { color: var(--violet); }
.lede-sub { margin-top: 22px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; font-weight: 500; color: var(--ink-2); max-width: 40ch; }

/* Orion-style narrative: dark hero, problem trio, keep/get, numbered start */
.hero.night { background: #1B1160; color: #fff; border-bottom: 0; }
.hero.night h1 { color: #fff; }
.hero.night h1 .accent { color: #C9BEFF; }
.hero.night .lede-pains { color: #fff; }
.hero.night .lede-pains .do { color: #C9BEFF; }
.hero.night .lede-sub { color: rgba(255, 255, 255, .84); }
.hero.night .btn-primary { background: #fff; color: var(--violet-deep); }
.hero.night .btn-primary:hover { background: var(--violet-tint); }
.hero.night .link-arrow { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero.night :focus-visible { outline-color: #fff; }
.hero.night .viz { border-color: transparent; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }

.section.center .wrap { display: grid; justify-items: center; text-align: center; }
.section.center h2 { margin-bottom: 20px; max-width: 20ch; }
.section.center .lede { margin: 0 auto; max-width: 40ch; }
.trio { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 960px; }
.trio li { display: grid; justify-items: center; gap: 14px; padding: 8px clamp(16px, 3vw, 40px); font: 600 clamp(18px, 1.8vw, 22px)/1.35 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.trio li + li { border-left: 1px solid var(--rule-2); }
.trio .star { color: var(--violet); }
.trio .star svg { width: 22px; height: 22px; display: block; }
.section.center .plain { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-3); }
.section.center .strong { margin-top: 6px; font: 600 clamp(28px, 3.4vw, 44px)/1.15 var(--display); letter-spacing: -0.03em; color: var(--violet-deep); }

#keep h2 { max-width: 22ch; }
.kg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.kg-col { background: var(--paper); border: 1px solid var(--rule-2); border-radius: 12px; padding: clamp(24px, 3vw, 40px); }
.kg-col.get { border-color: var(--violet); }
.kg-col h3 { font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 20px; }
.kg-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.kg-col li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--rule-2); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.4; color: var(--ink); }
.kg-col .ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--violet-tint); color: var(--violet-deep); }
.kg-col.get .ic { background: var(--violet); color: #fff; }
.kg-col .ic svg { width: 16px; height: 16px; }

.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps4 li { border-top: 3px solid var(--violet); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.steps4 b { font: 500 15px/1 var(--mono); color: var(--violet); }
.steps4 h3 { font: 600 clamp(22px, 2.1vw, 28px)/1.25 var(--display); letter-spacing: -0.02em; }
.steps4 p { color: var(--ink-2); font-size: 17px; max-width: 24ch; }
@media (max-width: 1080px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .trio { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .trio li + li { border-left: 0; border-top: 1px solid var(--rule-2); padding-top: 24px; }
  .kg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .steps4 { grid-template-columns: minmax(0, 1fr); } }

.section.statement { padding: clamp(48px, 6vw, 80px) 0; }
.section.statement h2 { margin-bottom: 0; max-width: none; }
#keep .gate-line { margin-top: clamp(24px, 3vw, 36px); }

/* Manrope headline weight */
h1, h2 { font-weight: 700; letter-spacing: -0.035em; }

/* Problem grid: six pains */
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(28px, 4vw, 48px); max-width: 1000px; }
.trio li { align-content: start; gap: 6px; }
.trio li + li { border-left: 0; }
.trio li:not(:nth-child(3n+1)) { border-left: 1px solid var(--rule-2); }
.trio li b { font: 700 clamp(20px, 2vw, 26px)/1.25 var(--display); letter-spacing: -0.02em; margin-top: 6px; }
.trio li .sub { font: 500 clamp(16px, 1.5vw, 19px)/1.4 var(--font); color: var(--ink-3); }
.hero-more { margin-top: clamp(28px, 3vw, 40px); text-align: center; }
@media (max-width: 720px) {
  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; column-gap: 12px; }
  .trio li, .trio li:not(:nth-child(3n+1)) { border-left: 0; border-top: 1px solid var(--rule-2); padding: 22px 6px; }
  .trio li:nth-child(-n+2) { border-top: 0; }
}
.trio li:nth-child(7):last-child { grid-column: 2; }
@media (max-width: 720px) { .trio li:nth-child(7):last-child { grid-column: 1 / -1; } }
.lead-captcha:empty { display: none; }

/* Simple layer diagram: no panel, no window bar, big labels beside each layer */
.viz.lv.simple .lv-body { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: stretch; padding: clamp(24px, 4vw, 56px); background-image: none; }
.lv-labels { position: relative; }
.lv-label { position: absolute; left: 0; right: 0; top: var(--y); transform: translateY(-50%); display: grid; gap: 6px; padding-left: 20px; border-left: 4px solid var(--violet); transition: opacity .6s var(--ease), translate .7s var(--ease); }
.lv-label.y3 { --y: 16.3%; }
.lv-label.y2 { --y: 48.6%; }
.lv-label.y1 { --y: 80.9%; border-left-color: var(--rule-2); }
.lv-label strong { font: 700 clamp(24px, 2.6vw, 34px)/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.lv-label span { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4; color: var(--ink-3); }
.lv-stage.js-anim + .lv-labels .lv-label { opacity: 0; translate: -14px 0; }
.lv-stage.js-anim + .lv-labels .lv-label.on { opacity: 1; translate: 0 0; }
@media (max-width: 900px) {
  .viz.lv.simple .lv-body { grid-template-columns: minmax(0, 1fr); }
  .lv-labels { display: grid; gap: 22px; }
  .lv-label { position: static; transform: none; }
}

/* Hub diagram: Claimi in the center, the layer around it, your systems connecting in */
.viz.hub2 .hub2-body { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px); }
.hub2-svg { width: 100%; height: auto; display: block; overflow: visible; }
.hub2-svg text { font: 600 22px var(--font); fill: var(--ink); }
.core-disc { fill: #fff; stroke: var(--violet); stroke-width: 3; }
.layer-band { fill: none; stroke: var(--violet); stroke-opacity: .14; stroke-width: 30; }
.layer-line { fill: none; stroke: var(--violet); stroke-width: 2; }
.node-disc { fill: #fff; stroke: var(--rule-2); stroke-width: 2; transition: stroke .4s var(--ease), fill .4s var(--ease); }
.node.linked .node-disc { stroke: var(--violet); fill: var(--violet-tint); }
.node-icon { fill: none; stroke: var(--violet-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spoke { stroke: var(--violet); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.hub2-title { font: 700 clamp(26px, 3vw, 40px)/1.15 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.hub2-sub { margin-top: 14px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--ink-3); }
/* motion: only when JS drives it */
.hub2-stage.js-anim .core { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.85); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.hub2-stage.js-anim.core-on .core { opacity: 1; transform: none; }
.hub2-stage.js-anim .node { opacity: 0; transition: opacity .5s var(--ease); }
.hub2-stage.js-anim .node.on { opacity: 1; }
.hub2-stage.js-anim .layer-band, .hub2-stage.js-anim .layer-line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s var(--ease); }
.hub2-stage.js-anim.layer-on .layer-band, .hub2-stage.js-anim.layer-on .layer-line { stroke-dashoffset: 0; }
.hub2-stage.js-anim .spoke { stroke-dashoffset: 100; transition: stroke-dashoffset .6s var(--ease); }
.hub2-stage.js-anim .spoke.on { stroke-dashoffset: 0; }
.hub2-stage.live .layer-band { animation: layer-breathe 3.2s var(--ease) infinite alternate; }
.hub2-stage.is-paused .layer-band { animation-play-state: paused; }
@keyframes layer-breathe { from { stroke-opacity: .12; } to { stroke-opacity: .26; } }
.hub2-stage.js-anim ~ .hub2-copy { opacity: 0; translate: 0 10px; transition: opacity .6s var(--ease), translate .7s var(--ease); }
.hub2-stage.js-anim ~ .hub2-copy.on { opacity: 1; translate: 0 0; }
@media (max-width: 900px) {
  .viz.hub2 .hub2-body { grid-template-columns: minmax(0, 1fr); }
  .hub2-copy { text-align: center; }
}
@media (max-width: 600px) { .hub2-svg text { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { .hub2-stage .layer-band { animation: none; } }

/* Hero diagram: three flat layers. Your systems → Claimi integration layer → workflows, automations, agents. */
.stack3 { margin: clamp(48px, 6vw, 80px) auto 0; max-width: 980px; display: grid; gap: 0; text-align: left; }
.stack3-copy { text-align: center; margin-bottom: clamp(24px, 3vw, 36px); }
.stack3-title { margin: 0; font: 600 clamp(22px, 2vw, 28px)/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.stack3-sub { margin: 8px 0 0; font: 400 17px/1.55 var(--display); color: var(--ink-2); }
.s3 { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px 28px; align-items: center; border-radius: 12px; padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 32px); }
.s3-label span { display: block; font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.s3-label strong { display: block; margin-top: 4px; font: 600 clamp(19px, 1.7vw, 22px)/1.25 var(--display); letter-spacing: -0.015em; }
.s3-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.s3-chips span { font: 600 16px/1.2 var(--display); padding: 10px 16px; border-radius: 8px; }
.s3-text { margin: 0; font: 500 17px/1.5 var(--display); }
.s3-top { background: var(--violet); color: #fff; }
.s3-top .s3-label span { color: #E8E3FF; }
.s3-top .s3-chips span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.s3-mid { background: var(--violet-tint); border: 1.5px solid var(--violet); color: var(--violet-deep); }
.s3-mid .s3-label span { color: var(--violet); }
.s3-mid .s3-text { color: var(--ink-2); }
.s3-bot { background: var(--paper); border: 1px solid var(--rule-2); color: var(--ink); }
.s3-bot .s3-label span { color: var(--ink-3); }
.s3-bot .s3-chips span { background: #F4F5F9; border: 1px solid var(--rule); color: var(--ink-2); }
.s3-flow { display: flex; justify-content: space-around; height: 34px; padding: 0 18%; }
.s3-flow i { width: 2px; height: 100%; display: block; background-image: linear-gradient(to top, var(--violet) 50%, transparent 0); background-size: 2px 10px; animation: s3-up 1.1s linear infinite; }
@keyframes s3-up { from { background-position: 0 0; } to { background-position: 0 -20px; } }
@media (max-width: 760px) { .s3 { grid-template-columns: minmax(0, 1fr); } .s3-flow { padding: 0 12%; } }
@media (prefers-reduced-motion: reduce) { .s3-flow i { animation: none; } }
