@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #DBFF00;
}
@property --on {
  syntax: "<color>";
  inherits: true;
  initial-value: #2B2B2B;
}

:root {
  --easy: #DBFF00;
  --ink: #2B2B2B;
  --deep: #2B2B2B;
  --paper: #F2F2F2;
  --line: #D7D9D8;
  --muted: #707070;
  --accent: #DBFF00;
  --on: #2B2B2B;
  --surface: #FFFFFF;
  --surface-soft: #E9EAE8;
  --header-h: 64px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(43,43,43,.04), 0 8px 24px rgba(43,43,43,.04);
  --shadow-md: 0 18px 50px rgba(43,43,43,.10);
  color-scheme: light;
  transition: --accent 400ms linear, --on 400ms linear;
  view-transition-name: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-padding-top: calc(var(--header-h) + 68px); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .38; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--easy); color: var(--deep); }
:focus-visible { outline: 3px solid var(--easy); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--easy);
  color: var(--deep);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 8px; }

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 2.4vw, 34px);
  background: rgba(43,43,43,.95);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(125%);
}
.brand {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.4px;
  cursor: pointer;
  padding: 8px 0;
  white-space: nowrap;
}
.brand b { color: var(--easy); }
.bar nav { display: flex; gap: 6px; align-items: center; }
.bar nav button, .bar .ghost {
  border: 0;
  background: transparent;
  color: #cfcfcf;
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.bar nav button:hover, .bar .ghost:hover { color: #fff; background: rgba(255,255,255,.08); }
.bar nav button.on { background: var(--easy); color: var(--deep); }

.is-enter { animation: vt-in 460ms cubic-bezier(.16,1,.3,1) both; }
html[data-dir="back"] .is-enter { animation-name: vt-in-back; }
@keyframes vt-in { from { opacity: 0; transform: translate3d(22px, 6px, 0) scale(.995); } }
@keyframes vt-in-back { from { opacity: 0; transform: translate3d(-22px, 6px, 0) scale(.995); } }

#app { view-transition-name: suite-content; }
::view-transition-old(suite-content) { animation: suite-out 180ms ease-in both; }
::view-transition-new(suite-content) { animation: suite-in 460ms cubic-bezier(.16,1,.3,1) both; }
html[data-dir="back"]::view-transition-old(suite-content) { animation-name: suite-out-back; }
html[data-dir="back"]::view-transition-new(suite-content) { animation-name: suite-in-back; }
::view-transition-group(morph-invoice),
::view-transition-group(morph-archive),
::view-transition-group(morph-dms),
::view-transition-group(morph-contract),
::view-transition-group(morph-hr),
::view-transition-group(morph-beat-title) {
  animation-duration: 560ms;
  animation-timing-function: cubic-bezier(.16,1,.3,1);
}
::view-transition-old(morph-invoice),
::view-transition-old(morph-archive),
::view-transition-old(morph-dms),
::view-transition-old(morph-contract),
::view-transition-old(morph-hr),
::view-transition-old(morph-beat-title) { animation: morph-out 180ms ease-in both; }
::view-transition-new(morph-invoice),
::view-transition-new(morph-archive),
::view-transition-new(morph-dms),
::view-transition-new(morph-contract),
::view-transition-new(morph-hr),
::view-transition-new(morph-beat-title) { animation: morph-in 460ms cubic-bezier(.16,1,.3,1) both; }
@keyframes suite-out { to { opacity: 0; transform: translateX(-10px) scale(.997); } }
@keyframes suite-in { from { opacity: 0; transform: translateX(24px) scale(.995); } }
@keyframes suite-out-back { to { opacity: 0; transform: translateX(10px) scale(.997); } }
@keyframes suite-in-back { from { opacity: 0; transform: translateX(-24px) scale(.995); } }
@keyframes morph-out { to { opacity: .25; filter: blur(2px); } }
@keyframes morph-in { from { opacity: .35; filter: blur(2px); } }

.solution-wipe {
  position: fixed;
  z-index: 90;
  top: var(--header-h);
  bottom: 0;
  left: -30px;
  width: 14px;
  background: var(--wipe);
  box-shadow: 18px 0 44px color-mix(in srgb, var(--wipe) 34%, transparent);
  pointer-events: none;
  animation: solution-wipe 620ms cubic-bezier(.4,0,.2,1) both;
}
@keyframes solution-wipe {
  0% { transform: translateX(-30px) scaleY(.65); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 60px)) scaleY(1); opacity: 0; }
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
h1, h2 { font-weight: 800; letter-spacing: -1.5px; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 5vw, 74px); text-transform: lowercase; }
h2 { font-size: clamp(30px, 3vw, 46px); text-transform: lowercase; }
.opener h1::after, .beat > h1::after, .wrap > h1::after, .dhead h1::after {
  content: "";
  display: block;
  width: clamp(54px, 7vw, 92px);
  height: 7px;
  margin-top: 18px;
  background: var(--accent);
  transform-origin: left center;
  animation: marker-in 1.05s .12s cubic-bezier(.16,1,.3,1) both;
}
@keyframes marker-in { from { transform: scaleX(0); } }
.as-typed, h1 .cn { text-transform: none; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 48px 32px 96px; }
.section { margin-top: 76px; }

.shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}
.rail {
  border-right: 1px solid var(--line);
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface-soft);
}
.railhead, .railfoot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 0 8px 10px;
}
.railfoot { margin-top: auto; padding-top: 12px; display: grid; gap: 4px; }
.railfoot .hint { color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.rail ol { list-style: none; margin: 0; padding: 0; overflow: auto; }
.rail ol {
  position: relative;
  --agenda-progress: 0;
}
.rail ol::before, .rail ol::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 26px;
  bottom: 26px;
  left: 26px;
  width: 2px;
  border-radius: 2px;
  pointer-events: none;
}
.rail ol::before { background: var(--line); }
.rail ol::after {
  background: var(--accent);
  transform: scaleY(var(--agenda-progress));
  transform-origin: top;
  animation: agenda-progress-y 520ms cubic-bezier(.16,1,.3,1) both;
  transition: background-color 300ms ease;
}
@keyframes agenda-progress-y {
  from { transform: scaleY(var(--agenda-from, var(--agenda-progress))); }
  to { transform: scaleY(var(--agenda-progress)); }
}
@keyframes agenda-progress-x {
  from { transform: scaleX(var(--agenda-from, var(--agenda-progress))); }
  to { transform: scaleX(var(--agenda-progress)); }
}
.beatbtn {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 14px;
  min-height: 52px;
  padding: 8px 10px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.beatbtn i {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}
.beatbtn b { font-size: 15px; letter-spacing: -.3px; text-transform: lowercase; }
.beatbtn:hover { background: rgba(255,255,255,.58); }
.beatbtn.on { background: #fff; box-shadow: var(--shadow-sm); }
.beatbtn.did i { background: var(--deep); color: #fff; }
.beatbtn.on i { background: var(--accent); color: var(--on); }
.beatbtn small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.stage-col {
  overflow: auto;
  padding: 38px clamp(28px, 4vw, 58px) 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.stage-content { flex: 1 0 auto; min-width: 0; }
.opener h1 { font-size: clamp(48px, 6vw, 92px); }

.cobrand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.cobrand img { height: 28px; max-width: 160px; object-fit: contain; }
.cobrand .ez {
  background: var(--easy);
  border-radius: 8px;
  padding: 2px 8px;
}
.pitch { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 64ch; color: #3d3d39; }
.pitch-box { border-left: 6px solid var(--accent); padding: 2px 0 2px 16px; }

.stagebar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin: 22px 0 10px;
  flex-wrap: wrap;
}
.steps, .tools, .depth-row, .jumps { display: flex; flex-wrap: wrap; gap: 8px; }
.step, .tbtn, .jump, .btn, .depth-row button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 9px 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.step.on, .btn.hot, .jump.hot { background: var(--accent); color: var(--on); border-color: var(--accent); }
.step .n {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 11px;
}
.step.on .n { background: rgba(0,0,0,.16); }
.off, .tbtn.off { opacity: .4; pointer-events: none; }

.stage {
  position: relative;
  background: var(--deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 2 / 1;
  min-height: 240px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(43,43,43,.08);
  transition: transform 520ms cubic-bezier(.16,1,.3,1), box-shadow 520ms ease;
}
.layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.012);
  filter: saturate(.96);
  transition: opacity 360ms ease, transform 520ms cubic-bezier(.16,1,.3,1), filter 360ms ease;
  background: #fff;
}
.layer.on { opacity: 1; transform: scale(1); filter: none; }
.layer img, .layer iframe, .layer .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.layer img { object-fit: contain; object-position: top center; background: #fff; }
.layer iframe { z-index: 2; opacity: 0; background: #fff; }
.layer iframe.in { opacity: 1; transition: opacity 200ms linear; }
.layer .play, .loader, .embedmsg { z-index: 3; }
.layer .ph {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: #fff;
  font-size: 28px;
  letter-spacing: -1px;
  text-transform: lowercase;
}
.layer .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  background: var(--accent);
  color: var(--on);
  font-weight: 800;
  border-radius: 999px;
  min-height: 48px;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.layer .play:hover { transform: translate(-50%, -50%) scale(1.03); box-shadow: 0 16px 42px rgba(0,0,0,.34); }
.focus-exit { display: none; }
html.demo-focus .bar, html.demo-focus .rail,
html.demo-focus .stage-col .beat > :not(.stagebar):not(.stage),
html.demo-focus #demos > :not(.stagebar):not(.stage) {
  opacity: .26;
  filter: saturate(.5);
}
html.demo-focus .bar, html.demo-focus .rail,
html.demo-focus .stage-col .beat > :not(.stagebar):not(.stage),
html.demo-focus #demos > :not(.stagebar):not(.stage),
html.demo-focus .stagebar {
  transition: opacity 360ms ease, filter 360ms ease;
}
html.demo-focus .stagebar { opacity: .72; }
html.demo-focus .stage {
  transform: scale(1.012);
  box-shadow: 0 28px 72px rgba(43,43,43,.22), 0 0 0 2px var(--accent);
}
html.demo-focus .focus-exit { display: inline-flex; }
.loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: rgba(43,43,43,.45);
  color: #fff;
  text-align: center;
}
.loader i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #666;
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.embedmsg {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  background: var(--deep);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}

.depth-row { margin-top: 14px; }
.depth-row button.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms cubic-bezier(.2,.8,.2,1); }
.panel.open { grid-template-rows: 1fr; }
.panel .inner { overflow: hidden; }
.panel.open .inner { overflow: visible; padding-top: 18px; }

.vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.val {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}
.val i {
  font-style: normal;
  font-weight: 800;
  background: var(--accent);
  color: var(--on);
  border-radius: 8px;
  padding: 2px 6px;
  height: fit-content;
  font-size: 12px;
}
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pack { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.pack.top { border: 2px solid var(--accent); }
.pack ul { margin: 12px 0 0; padding: 0; list-style: none; }
.pack li { padding: 7px 0 7px 18px; border-top: 1px solid var(--surface-soft); position: relative; }
.pack li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--deep);
  border-bottom: 2px solid var(--deep);
  transform: rotate(-45deg);
}
.opt { color: var(--muted); }
.sref { margin-top: 14px; background: var(--deep); color: #fff; border-radius: 18px; padding: 22px 24px; }
.sref p { margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -.4px; }
.sref cite { display: block; margin-top: 10px; color: var(--accent); font-style: normal; font-weight: 700; }

.flow {
  position: relative;
  background: var(--deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.flow.light { background: #fff; color: var(--deep); border: 1px solid var(--line); }
.flow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.flow.light .flow-head { border-color: var(--line); }
.flow-head > span { display: grid; gap: 2px; }
.flow-head b { font-size: 15px; letter-spacing: -.2px; }
.flow-head small {
  color: #9a9a96;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.flow.light .flow-head small { color: var(--muted); }
.flow-replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.flow-replay i { color: var(--accent); font-size: 16px; font-style: normal; line-height: 1; }
.flow.light .flow-replay { border-color: var(--line); background: var(--paper); color: var(--deep); }
.architecture { position: relative; min-height: 390px; margin-top: 18px; }
.arch-node {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 10px;
  width: 23%;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
}
.flow.light .arch-node { border-color: var(--line); background: rgba(242,242,242,.92); }
.arch-index {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on);
  font-size: 10px;
  font-weight: 850;
}
.arch-node b { display: block; font-size: 15px; letter-spacing: -.2px; }
.arch-node small { display: block; margin-top: 4px; color: #aaa; font-size: 12px; line-height: 1.35; }
.flow.light .arch-node small { color: var(--muted); }
.arch-center {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 250px;
  min-height: 112px;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 20px;
  border-radius: 22px;
  background: var(--accent);
  color: var(--on);
  text-align: center;
  box-shadow: 0 18px 46px color-mix(in srgb, var(--accent) 20%, transparent);
}
.arch-center strong { font-size: 21px; letter-spacing: -.5px; }
.arch-center span { font-size: 12px; line-height: 1.35; }
.arch-lines {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.arch-lines path {
  fill: none;
  stroke: rgba(255,255,255,.22);
  stroke-width: 2;
  stroke-dasharray: 7 8;
  vector-effect: non-scaling-stroke;
}
.flow.light .arch-lines path { stroke: rgba(43,43,43,.2); }
.flow.play .arch-lines path { animation: dash-flow 1.6s linear both; }
@keyframes dash-flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* Invoice · intelligent validation and posting engine */
.arch-invoice {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(190px, 23%) minmax(280px, 1fr) minmax(190px, 23%);
  align-items: center;
  gap: 9%;
  padding: 18px 0 58px;
}
.invoice-lines {
  position: absolute;
  z-index: 1;
  inset: 0 0 46px;
  width: 100%;
  height: calc(100% - 46px);
  overflow: visible;
}
.invoice-lines path {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 58%, transparent);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}
.invoice-lines circle {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
}
.flow.play .invoice-lines path { animation: invoice-link 900ms cubic-bezier(.16,1,.3,1) both; }
.flow.play .invoice-lines path:nth-child(2) { animation-delay: 650ms; }
.flow.play .invoice-lines path:nth-child(3) { animation-delay: 820ms; }
.flow.play .invoice-lines circle { animation: invoice-node-pulse 850ms 520ms ease-out both; }
.flow.play .invoice-lines circle:nth-of-type(2) { animation-delay: 1.05s; }
@keyframes invoice-link { from { stroke-dashoffset: 1; } }
@keyframes invoice-node-pulse {
  from { opacity: 0; transform: scale(.25); }
  60% { opacity: 1; transform: scale(1.9); }
}
.invoice-entry, .invoice-output, .invoice-engine, .invoice-core { position: relative; z-index: 3; }
.invoice-entry .arch-node, .invoice-output .arch-node {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 108px;
}
.invoice-output { display: grid; gap: 16px; }
.flow.play .invoice-entry .arch-node { animation: invoice-card-in 560ms 80ms cubic-bezier(.16,1,.3,1) both; }
.flow.play .invoice-output .arch-node:first-child { animation: invoice-card-in 560ms 780ms cubic-bezier(.16,1,.3,1) both; }
.flow.play .invoice-output .arch-node:last-child { animation: invoice-card-in 560ms 980ms cubic-bezier(.16,1,.3,1) both; }
@keyframes invoice-card-in { from { opacity: 0; transform: translateY(14px); } }
.invoice-engine {
  min-height: 270px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 46%),
    rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 24px 70px rgba(0,0,0,.2);
  text-align: center;
  overflow: hidden;
}
.invoice-engine::after {
  content: "";
  position: absolute;
  inset: -45% 15%;
  background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--accent) 16%, transparent) 50%, transparent 62%);
  transform: translateX(-130%);
}
.flow.play .invoice-engine::after { animation: invoice-engine-sweep 1.5s 340ms cubic-bezier(.16,1,.3,1) both; }
@keyframes invoice-engine-sweep { to { transform: translateX(130%); } }
.invoice-engine-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.invoice-engine-label i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on);
  font-size: 9px;
  font-style: normal;
}
.invoice-engine > strong { font-size: 22px; letter-spacing: -.5px; }
.invoice-engine > small { max-width: 250px; color: #aaa; font-size: 12px; line-height: 1.35; }
.invoice-paper {
  position: relative;
  width: 62px;
  height: 78px;
  margin: 4px 0;
  border-radius: 7px 12px 7px 7px;
  background: var(--accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 13%, transparent);
  overflow: hidden;
}
.invoice-paper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent color-mix(in srgb, var(--on) 32%, transparent) transparent;
}
.invoice-paper i {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 3px;
  border-radius: 3px;
  background: var(--on);
  opacity: .58;
}
.invoice-paper i:nth-child(1) { top: 27px; }
.invoice-paper i:nth-child(2) { top: 38px; }
.invoice-paper i:nth-child(3) { top: 49px; right: 25px; }
.invoice-paper span {
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
  background: color-mix(in srgb, #fff 65%, var(--accent));
  box-shadow: 0 0 14px 4px color-mix(in srgb, var(--accent) 70%, transparent);
}
.flow.play .invoice-paper span { animation: invoice-scan 1.25s 330ms cubic-bezier(.4,0,.2,1) both; }
@keyframes invoice-scan { 0% { transform: translateY(0); } 100% { transform: translateY(94px); } }
.invoice-checks { display: flex; gap: 6px; margin-top: 3px; }
.invoice-checks i {
  width: 23px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .28;
}
.flow.play .invoice-checks i { animation: invoice-check 420ms 920ms ease-out both; }
.flow.play .invoice-checks i:nth-child(2) { animation-delay: 1.08s; }
.flow.play .invoice-checks i:nth-child(3) { animation-delay: 1.24s; }
@keyframes invoice-check { from { opacity: .1; transform: scaleX(.2); } to { opacity: 1; transform: scaleX(1); } }
.invoice-core {
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
}
.invoice-core span { color: #aaa; font-size: 13px; }

/* Archive · protected concentric repository */
.arch-vault, .arch-hub, .arch-cycle { min-height: 440px; }
.arch-vault .arch-node-1, .arch-hub .arch-node-1 { left: 0; top: 30px; }
.arch-vault .arch-node-2, .arch-hub .arch-node-2 { right: 0; top: 30px; }
.arch-vault .arch-node-3, .arch-hub .arch-node-3 { right: 0; bottom: 30px; }
.arch-vault .arch-node-4, .arch-hub .arch-node-4 { left: 0; bottom: 30px; }
.vault-rings {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 330px;
  height: 330px;
  transform: translate(-50%, -50%);
}
.vault-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 50%;
}
.vault-rings i:nth-child(2) { inset: 38px; }
.vault-rings i:nth-child(3) { inset: 76px; }
.flow.play .vault-rings i { animation: vault-ring 1.5s cubic-bezier(.16,1,.3,1) both; }
.flow.play .vault-rings i:nth-child(2) { animation-delay: 100ms; }
.flow.play .vault-rings i:nth-child(3) { animation-delay: 200ms; }
@keyframes vault-ring { from { opacity: 0; transform: scale(.72); } }
.vault-pulse {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--on);
}
.flow.play .vault-pulse { animation: vault-pulse 1.8s 350ms ease-out both; }
@keyframes vault-pulse {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  to { box-shadow: 0 0 0 145px transparent; }
}

/* DMS · connected content hub */
.hub-core { border-radius: 16px; }
.hub-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 31px;
  margin: 0 auto;
}
.hub-grid i { width: 14px; height: 10px; border-radius: 2px; background: var(--on); opacity: .7; }
.hub-scan {
  position: absolute;
  z-index: 5;
  left: calc(50% - 120px);
  top: calc(50% - 52px);
  width: 240px;
  height: 2px;
  background: #fff;
  opacity: 0;
  box-shadow: 0 0 16px #fff;
}
.flow.play .hub-scan { animation: hub-scan 1.7s 250ms ease-in-out both; }
@keyframes hub-scan {
  0% { transform: translateY(0); opacity: 0; }
  15%, 80% { opacity: .72; }
  100% { transform: translateY(102px); opacity: 0; }
}

/* Contract · circular lifecycle */
.cycle-ring {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 390px;
  height: 390px;
  transform: translate(-50%, -50%) rotate(-90deg);
  overflow: visible;
}
.cycle-base, .cycle-progress {
  fill: none;
  stroke-width: 3;
}
.cycle-base { stroke: rgba(255,255,255,.14); }
.flow.light .cycle-base { stroke: var(--line); }
.cycle-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 955;
  stroke-dashoffset: 0;
}
.flow.play .cycle-progress { animation: cycle-draw 2.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes cycle-draw { from { stroke-dashoffset: 955; } }
.cycle-arrow { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.arch-cycle .arch-node-1 { left: 50%; top: 0; transform: translateX(-50%); }
.arch-cycle .arch-node-2 { right: 0; top: 50%; transform: translateY(-50%); }
.arch-cycle .arch-node-3 { left: 50%; bottom: 0; transform: translateX(-50%); }
.arch-cycle .arch-node-4 { left: 0; top: 50%; transform: translateY(-50%); }

/* HR · ascending employee journey */
.arch-journey { min-height: 410px; }
.journey-line {
  position: absolute;
  z-index: 1;
  inset: 24px 0 64px;
  width: 100%;
  height: calc(100% - 88px);
  overflow: visible;
}
.journey-base, .journey-progress { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.journey-base { stroke: rgba(255,255,255,.14); }
.flow.light .journey-base { stroke: var(--line); }
.journey-progress { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1100; stroke-dashoffset: 0; }
.flow.play .journey-progress { animation: journey-draw 2.4s cubic-bezier(.16,1,.3,1) both; }
@keyframes journey-draw { from { stroke-dashoffset: 1100; } }
.arch-journey .arch-node { width: 22%; }
.arch-journey .arch-node-1 { left: 0; top: 220px; }
.arch-journey .arch-node-2 { left: 26%; top: 20px; }
.arch-journey .arch-node-3 { left: 53%; top: 180px; }
.arch-journey .arch-node-4 { right: 0; top: 0; }
.journey-person {
  position: absolute;
  z-index: 5;
  left: 93%;
  top: 12%;
  width: 18px;
  height: 18px;
  border: 5px solid var(--accent);
  border-radius: 50%;
  background: var(--deep);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 18%, transparent);
}
.flow.light .journey-person { background: #fff; }
.flow.play .journey-person { animation: journey-person 2.4s cubic-bezier(.4,0,.2,1) both; }
@keyframes journey-person {
  0% { left: 5%; top: 70%; }
  34% { left: 31%; top: 18%; }
  67% { left: 61%; top: 62%; }
  100% { left: 93%; top: 12%; }
}
.journey-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on);
  font-size: 12px;
}

/* Platform · shared architectural stack */
.arch-stack { min-height: 0; }
.stack-layers {
  display: grid;
  gap: 8px;
  width: min(860px, 100%);
  margin: 0 auto;
}
.stack-layer {
  display: grid;
  grid-template-columns: 42px minmax(130px, .65fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
}
.flow.light .stack-layer { border-color: var(--line); border-left-color: var(--accent); background: var(--paper); }
.stack-layer span { color: var(--accent); font-size: 11px; font-weight: 850; }
.stack-layer b { font-size: 15px; }
.stack-layer small { color: #aaa; line-height: 1.35; }
.flow.light .stack-layer small { color: var(--muted); }
.flow.play .stack-layer { animation: stack-layer 620ms cubic-bezier(.16,1,.3,1) both; }
.flow.play .stack-layer:nth-child(2) { animation-delay: 100ms; }
.flow.play .stack-layer:nth-child(3) { animation-delay: 200ms; }
.flow.play .stack-layer:nth-child(4) { animation-delay: 300ms; }
@keyframes stack-layer { from { opacity: 0; transform: translateX(-24px); } }
.stack-core {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(760px, calc(100% - 40px));
  margin: 12px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on);
  overflow: hidden;
}
.stack-core i {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%);
  transform: translateX(-100%);
}
.flow.play .stack-core i { animation: stack-shine 1.2s 450ms ease both; }
@keyframes stack-shine { to { transform: translateX(100%); } }

.ints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.ints span {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.flow.light .ints span { border-color: rgba(0,0,0,.14); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.facts.five { grid-template-columns: repeat(5, 1fr); }
.facts.six { grid-template-columns: repeat(6, 1fr); }
.fact, .card, .cert, .bcard, .pack, .val { }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.fact b { display: block; font-size: 32px; letter-spacing: -1px; }
.fact span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.band {
  margin-top: 64px;
  background: var(--deep);
  color: #fff;
  border-radius: 28px;
  padding: 28px;
}
.band .kicker, .band .fact span, .band .lead { color: #c8c8c4; }
.card h2, .cards3 h2, .plgrid h2 { font-size: 22px; letter-spacing: -.4px; text-transform: none; }
.band .fact { background: #1b1b1b; border-color: #1b1b1b; }
.band .fact b { color: var(--easy); }
.vm, .cards3, .plgrid, .nxgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cards3 { grid-template-columns: repeat(3, 1fr); }
.card, .vmc, .bcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card p, .vmc p, .bcard p { color: var(--muted); line-height: 1.45; }
.card.dk, .vmc.dark { background: var(--deep); color: #fff; border-color: var(--deep); }
.card.dk p, .vmc.dark p { color: #aaa; }
.card.dk .kicker, .vmc.dark .kicker { color: var(--easy); }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-height: 92px; }
.cert span { display: block; color: var(--muted); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 650; }
.quote { margin-top: 28px; background: var(--easy); border-radius: 24px; padding: 28px; }
.quote p { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -.5px; font-weight: 650; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; }
.quote.alt { background: var(--deep); color: #fff; }
.quote.alt cite { color: var(--easy); }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.bcard { display: flex; flex-direction: column; min-height: 300px; }
.brand-logo {
  height: 72px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.brand-logo img {
  width: auto;
  max-width: min(210px, 100%);
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}
.bcard h3 { margin: 8px 0; font-size: 24px; letter-spacing: -.6px; text-transform: none; }
.bcard > b { margin-top: auto; padding-top: 16px; }
.bcard.easy { border-top: 6px solid var(--easy); }
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.rstep i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--deep);
  font-style: normal;
  font-weight: 800;
  background: #fff;
}
.rstep:last-child i { background: var(--easy); border-color: var(--easy); }
.rstep b { display: block; margin: 10px 0 6px; font-size: 20px; letter-spacing: -.4px; }
.rstep p { margin: 0; color: var(--muted); line-height: 1.45; }

.hub { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin-top: 28px; }
.tile {
  position: relative;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: left;
  cursor: pointer;
  min-height: 180px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}
.tile h2 { font-size: clamp(28px, 3vw, 40px); margin: 18px 0 8px; }
.tile p { color: var(--muted); margin: 0; max-width: 36ch; }
.t-company { grid-row: span 2; background: var(--easy); min-height: 380px; }
.t-company p { color: #333; }
.t-solutions { grid-column: span 2; background: var(--deep); color: #fff; }
.t-solutions p { color: #aaa; }
.t-platform { grid-column: span 2; background: #fff; border: 1px solid var(--line); }
.t-company .kicker { color: #333; }
.t-solutions .kicker { color: #9a9a9a; }
.t-solutions, .band, .preview-card, .card.dk, .vmc.dark {
  position: relative;
  overflow: hidden;
}
.t-solutions::after, .band::after, .preview-card::after, .card.dk::after, .vmc.dark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-top: 7px solid var(--easy);
  border-right: 7px solid var(--easy);
  pointer-events: none;
  transform-origin: top right;
  animation: corner-in 700ms .28s cubic-bezier(.16,1,.3,1) both;
}
@keyframes corner-in { from { transform: scale(.35); opacity: 0; } }
.go {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  font-size: 22px;
  transition: transform .2s, background-color .2s;
}
.t-company .go { background: rgba(43,43,43,.10); }
.t-solutions .go { background: rgba(255,255,255,.12); }
.tile:hover .go, .scard:hover .go, .pathc:hover .go { transform: translateX(6px); }
.stagger .tile, .stagger .pathc { animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }
.stagger .tile:nth-child(2), .stagger .pathc:nth-child(2) { animation-delay: 40ms; }
.stagger .tile:nth-child(3), .stagger .pathc:nth-child(3) { animation-delay: 80ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.pathgrid, .quick, .sgrid { display: grid; gap: 10px; margin-top: 14px; }
.pathgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick, .sgrid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pathc, .quick button, .scard {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pathc b, .scard h2 { display: block; font-size: 22px; letter-spacing: -.5px; }
.pathc span, .scard p { color: var(--muted); }
.scard { min-height: 232px; padding: 22px; min-width: 0; overflow: hidden; }
.scard .kicker { letter-spacing: .2px; line-height: 1.35; }
.scard:before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c, var(--accent));
}
.quick button { border-top: 4px solid var(--c, var(--line)); font-weight: 750; }

.return {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px 0;
}
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(242,242,242,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav .in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.subnav button, .subnav a {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-height: 36px;
  padding: 7px 11px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
}
.subnav button.on, .subnav button:hover { background: #fff; color: var(--deep); }
.subnav .nm { font-weight: 800; margin-right: 8px; }
.dotc { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 48px; }
.pager button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-md); padding: 18px 20px; cursor: pointer; box-shadow: var(--shadow-sm); }
.pager .nx { text-align: right; }
.dhead { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; }
.preview { background: var(--deep); border-radius: 22px; overflow: hidden; }
.preview .pbar { display: flex; justify-content: space-between; color: #bbb; padding: 12px 16px; }
.preview .pbar b { color: #fff; }
.preview img { display: block; width: 100%; background: #fff; }
.preview .ph { background: #fff; color: #999; padding: 28px; min-height: 220px; }

.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.prep {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 22px;
  align-items: start;
}
.fields, .side article { display: grid; gap: 10px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; color: var(--muted); }
input[type="text"], input[type="email"], textarea, select {
  font-size: 16px;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--deep);
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { min-height: 72px; resize: vertical; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--deep); }
input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--deep);
  font-weight: 750;
  cursor: pointer;
}
.fields input:hover, .fields textarea:hover, .fields select:hover { border-color: #c7c7c0; }
.fields input:focus, .fields textarea:focus, .fields select:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(43,43,43,.08);
  outline: 0;
}
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 9px 14px;
  font-weight: 750;
  cursor: pointer;
}
.checks button.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.agenda-edit { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.agenda-edit li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 52px;
  padding: 8px 10px;
}
.agenda-edit li > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.mini { display: flex; gap: 4px; }
.mini button, .textbtn {
  border: 0;
  background: var(--surface-soft);
  border-radius: 8px;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 9px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color .18s ease, transform .18s ease;
}
.mini button:hover, .textbtn:hover { background: #e4e4de; }
.mini button[data-act="remove"]:hover { background: var(--deep); color: #fff; }
.side { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 10px; }
.side article {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--c, var(--line));
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.side h3 { margin: 0; font-size: 18px; letter-spacing: -.3px; text-transform: lowercase; }
.demo-line { display: flex; gap: 8px; align-items: center; font-weight: 650; color: var(--deep); }
.demo-line.gap { color: var(--muted); }
details summary { cursor: pointer; font-weight: 750; margin: 8px 0; }
.preview-card { background: var(--deep); color: #fff; border-radius: 18px; padding: 16px 18px; margin-top: 8px; }
.preview-card .kicker { color: var(--easy); }
.preview-card p { margin: 8px 0 0; color: #ccc; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#savestate { color: var(--muted); font-size: 13px; font-weight: 700; }
.file { display: inline-block; }

.prepare-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.prepare-head .lead { margin-bottom: 0; }
.prepare-actions { display: grid; justify-items: end; gap: 8px; }
.prep-section {
  background: rgba(255,255,255,.56);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.prep-section + .prep-section { margin-top: 2px; }
.prep-section-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.prep-section-head > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.prep-section-head h2 { font-size: 22px; letter-spacing: -.5px; text-transform: lowercase; }
.prep-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.prep-section .row-actions { margin-bottom: 0; }
.add-row { margin-top: 12px; }
.add-row button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 750;
  cursor: pointer;
}
.add-row button:hover { border-color: var(--deep); }
.logo-preview img { height: 38px; max-width: 180px; object-fit: contain; }

.present-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 18px 0 2px;
  border-top: 1px solid var(--line);
}
.present-nav .btn { min-width: 0; border-radius: 14px; }
.present-nav .prev { justify-self: start; }
.present-nav .next { justify-self: end; background: var(--deep); color: #fff; border-color: var(--deep); }
.present-nav .progress { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }

:where(.tile, .scard, .pathc, .quick button, .pager button, .btn, .step, .tbtn, .depth-row button):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(43,43,43,.09);
}
:where(.tile, .scard, .pathc, .quick button, .pager button, .btn, .step, .tbtn, .depth-row button):active {
  transform: translateY(0) scale(.985);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn.hot:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 30%, transparent); }

.seen { display: flex; flex-wrap: wrap; gap: 8px; }
.seen button {
  border: 0;
  border-left: 6px solid var(--c);
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 750;
  cursor: pointer;
}
.seen button.did { background: #fff; }
.contact a { color: var(--easy); font-weight: 750; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 720ms cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms),
    transform 720ms cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.mailgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.mailsol { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c, var(--line)); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.mailsol h3 { margin: 0; font-size: 18px; letter-spacing: -.3px; text-transform: lowercase; }
.mailpreview { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; position: sticky; top: 74px; }
.shown-tag { font-size: 11px; font-weight: 750; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }


@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); height: auto; overflow: visible; }
  .rail {
    position: sticky;
    top: var(--header-h);
    z-index: 25;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px;
    max-width: 100%;
    overflow-x: auto;
  }
  .shell, .stage { max-width: 100%; }
  .railhead, .railfoot { display: none; }
  .rail ol { display: flex; gap: 6px; }
  .rail ol::before, .rail ol::after {
    top: 25px;
    right: 26px;
    bottom: auto;
    left: 26px;
    width: auto;
    height: 2px;
  }
  .rail ol::after {
    transform: scaleX(var(--agenda-progress));
    transform-origin: left;
    animation-name: agenda-progress-x;
  }
  .beatbtn { width: auto; grid-template-columns: 28px auto; white-space: nowrap; }
  .stage-col { overflow: visible; padding: 30px 22px 64px; min-width: 0; }
  .prep, .dhead, .vm, .nxgrid, .pager, .plgrid, .mailgrid { grid-template-columns: 1fr; }
  .hub { grid-template-columns: 1fr 1fr; }
  .t-company { grid-row: auto; min-height: 200px; }
  .t-solutions, .t-platform { grid-column: auto; }
  .sgrid, .quick, .facts, .facts.five, .facts.six, .certs, .bgrid, .cards3, .pathgrid, .road {
    grid-template-columns: 1fr 1fr;
  }
  .side { position: static; }
}
@media (max-width: 820px) {
  .brand { font-size: 0; }
  .brand b { font-size: 18px; }
  .bar nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .bar nav button, .bar .ghost { flex: none; }
  .hide-sm { display: none; }
  .steps, .depth-row, .tools { max-width: 100%; }
  .step { max-width: 100%; }
  .prepare-head { grid-template-columns: 1fr; align-items: start; }
  .prepare-actions { justify-items: start; }
  .mailpreview { position: static; }
  .subnav .in { overflow-x: auto; scrollbar-width: none; }
  .subnav .in > * { flex: none; }
  .flow { padding: 16px; }
  .arch-vault, .arch-hub, .arch-cycle, .arch-journey {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .arch-vault .arch-lines, .arch-hub .arch-lines, .vault-rings, .vault-pulse,
  .cycle-ring, .journey-line, .journey-person, .hub-scan { display: none; }
  .arch-vault .arch-node, .arch-hub .arch-node, .arch-cycle .arch-node, .arch-journey .arch-node {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 104px;
    transform: none;
  }
  .arch-vault .arch-center, .arch-hub .arch-center, .arch-cycle .arch-center {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    width: auto;
    min-height: 96px;
    transform: none;
  }
  .journey-core {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    transform: none;
    justify-content: center;
    order: -1;
    border-radius: 18px;
  }
  .arch-vault .arch-node { border-left: 4px solid var(--accent); }
  .arch-hub .arch-node { border-top: 4px solid var(--accent); }
  .arch-cycle .arch-node { border-radius: 22px; }
  .arch-journey .arch-node { border-bottom: 4px solid var(--accent); }
  .arch-invoice { min-height: 0; grid-template-columns: 1fr; gap: 10px; padding: 0; }
  .invoice-lines { display: none; }
  .invoice-output { grid-template-columns: 1fr 1fr; gap: 8px; }
  .invoice-engine { min-height: 230px; }
  .invoice-core { position: relative; inset: auto; width: 100%; }
}
@media (max-width: 640px) {
  .bar { padding: 0 12px; }
  .bar nav button, .bar .ghost { padding: 8px; font-size: 13px; }
  .wrap { padding: 34px 16px 68px; }
  .hub, .sgrid, .quick, .facts, .facts.five, .facts.six, .certs, .bgrid, .cards3, .pathgrid, .road, .vals {
    grid-template-columns: 1fr;
  }
  .lane { grid-template-columns: 1fr 1fr; }
  .lane:before, .lane:after { display: none; }
  .tile { min-height: 190px; padding: 22px; }
  .t-company { min-height: 240px; }
  .stage-col { padding: 26px 16px 56px; }
  .stage { aspect-ratio: 4 / 3; min-height: 220px; border-radius: 18px; }
  .stagebar { align-items: stretch; }
  .steps { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
  .step { flex: none; }
  .tools { justify-content: flex-end; }
  .prep-section { padding: 18px 14px; border-radius: 20px; }
  .agenda-edit li { grid-template-columns: 32px minmax(0, 1fr); }
  .agenda-edit .mini { grid-column: 2; justify-content: flex-start; }
  .present-nav { grid-template-columns: 1fr auto 1fr; }
  .present-nav .btn { width: 44px; height: 44px; padding: 0; font-size: 0; }
  .present-nav .btn .arrow { font-size: 18px; }
  .facts { gap: 10px; }
  html.demo-focus .stage { transform: none; }
  .flow-head { align-items: flex-start; }
  .flow-replay span { display: none; }
  .arch-vault, .arch-hub, .arch-cycle, .arch-journey, .invoice-output { grid-template-columns: 1fr; }
  .stack-layer { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .stack-layer small { grid-column: 2; }
  .stack-core, .invoice-core, .journey-core { width: 100%; flex-direction: column; gap: 4px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  html { scroll-behavior: auto; }
  .layer, .layer iframe.in, .panel, .go, .scard:before, button, a { transition: none; }
  .flow.play .lane:after, .flow.play .node .dot, .loader i, .stagger .tile, .stagger .pathc, .is-enter,
  .opener h1::after, .beat > h1::after, .wrap > h1::after, .dhead h1::after,
  .t-solutions::after, .band::after, .preview-card::after, .card.dk::after, .vmc.dark::after,
  .solution-wipe, .rail ol::after,
  .flow.play .arch-lines path, .flow.play .invoice-lines path, .flow.play .invoice-lines circle,
  .flow.play .invoice-entry .arch-node, .flow.play .invoice-output .arch-node,
  .flow.play .invoice-engine::after, .flow.play .invoice-paper span, .flow.play .invoice-checks i,
  .flow.play .vault-rings i, .flow.play .vault-pulse,
  .flow.play .hub-scan, .flow.play .cycle-progress, .flow.play .journey-progress,
  .flow.play .journey-person, .flow.play .stack-layer, .flow.play .stack-core i { animation: none !important; }
  .flow-replay { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
