/* ==========================================================================
   Zigtal — Learning Journeys (accent: green / mint)
   ========================================================================== */

.lj-hero-visual > *,
.lj-cap > *,
.lj-cap-copy > *,
.lj-step > *,
.lj-stats > *,
.lj-impact-head > *,
.lj-link > * {
  min-width: 0;
}

.lj-head-stack {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.lj-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.lj-hero .aurora i:nth-child(1) { --c: #3ee6b0; --o: 0.26; left: 46%; top: -24%; }
.lj-hero .aurora i:nth-child(2) { --c: #22d3ee; --o: 0.2; left: 76%; top: 22%; }
.lj-hero .aurora i:nth-child(3) { --c: #5b8cff; --o: 0.15; left: -12%; top: 42%; }

.lj-hero .grid-floor {
  height: 36%;
  opacity: 0.5;
}

.lj-hero .page-title {
  font-size: clamp(2.6rem, 1rem + 3.9vw, 4.3rem);
}

.lj-pill {
  padding-left: 0.4rem;
  color: var(--text);
}

.lj-pill-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  color: #03130d;
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--accent) 70%, transparent);
}

.lj-pill-icon svg {
  width: 14px;
  height: 14px;
}

/* Signature visual: journey window + learning → output link */
.lj-hero-visual {
  width: min(100%, 600px);
  justify-self: end;
}

.lj-hero-visual::before {
  background: radial-gradient(closest-side, rgba(62, 230, 176, 0.45), rgba(34, 211, 238, 0.12) 60%, transparent);
}

.lj-tilt {
  position: relative;
}

.lj-journey .window-body {
  gap: 18px;
}

.lj-route-wrap {
  position: relative;
}

.lj-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.lj-route li {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding-right: 12px;
}

/* track + fill between nodes */
.lj-route li::before,
.lj-route li::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 30px;
  right: 6px;
  height: 2px;
  border-radius: 2px;
}

.lj-route li::before {
  background: repeating-linear-gradient(90deg, var(--line-3) 0 4px, transparent 4px 8px);
}

.lj-route li::after {
  background: linear-gradient(90deg, var(--accent), #22d3ee);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent);
  transform-origin: 0 50%;
  transform: scaleX(var(--fill, 0));
  transition: transform 0.75s var(--ease-out) calc(var(--k, 0) * 0.45s + 0.55s);
}

.lj-route li:last-child::before,
.lj-route li:last-child::after {
  display: none;
}

.js .animate .lj-route li::after {
  transform: scaleX(0);
}

.js .animate.is-in .lj-route li::after {
  transform: scaleX(var(--fill, 0));
}

.lj-node {
  position: relative;
  z-index: 1;
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-3);
  background: #0f1226;
  color: #03130d;
  transition: transform 0.6s var(--ease-spring) calc(var(--k, 0) * 0.45s + 0.3s), opacity 0.4s calc(var(--k, 0) * 0.45s + 0.3s);
}

.lj-node svg {
  width: 13px;
  height: 13px;
}

.is-done > .lj-node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 65%, transparent);
}

.is-active > .lj-node {
  border-color: var(--accent);
  animation: node-pulse 1.8s infinite;
}

.is-active > .lj-node::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.js .animate .lj-node {
  opacity: 0;
  transform: scale(0.3);
}

.js .animate.is-in .lj-node {
  opacity: 1;
  transform: none;
}

.lj-step-text strong {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.lj-step-text .sub {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.35;
}

.lj-route .tag {
  font-size: 10.5px;
  padding: 2px 8px;
}

.lj-route li:not(.is-done):not(.is-active) .lj-step-text strong {
  color: var(--text-2);
}

/* light pulse travelling along the completed part of the route */
.lj-route-pulse {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--accent), 0 0 4px #fff;
  opacity: 0;
  pointer-events: none;
}

.animate.is-in .lj-route-pulse {
  animation: lj-pulse-run 3.2s var(--ease) 2.4s infinite;
}

@keyframes lj-pulse-run {
  0% { left: 9px; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: calc(50% + 9px); opacity: 0; }
}

/* learning → output small multiples */
.lj-link {
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 11, 0.4);
}

.lj-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lj-link-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.lj-link-title svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.lj-series {
  display: grid;
  gap: 6px;
}

.lj-series-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-3);
  font-size: 11.5px;
}

.lj-series-label > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 400px) {
  .lj-series-label > span {
    white-space: normal;
    line-height: 1.3;
  }
}

.lj-series-label b {
  flex: none;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
}

.lj-key {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
}

.lj-key--line {
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: #5b8cff;
  box-shadow: 0 0 8px rgba(91, 140, 255, 0.7);
}

.lj-bars.bars {
  height: 52px;
  gap: 8px;
}

.lj-bars.bars i {
  border-radius: 4px 4px 1px 1px;
}

.lj-spark,
.lj-trend-svg,
.lj-out-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.lj-grid-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.lj-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s var(--ease-out) 0.6s;
}

.lj-spark .lj-line,
.lj-line--b {
  stroke: #5b8cff;
  filter: drop-shadow(0 0 4px rgba(91, 140, 255, 0.55));
}

.lj-line--a {
  filter: drop-shadow(0 0 4px rgba(62, 230, 176, 0.55));
}

.js .animate .lj-line {
  stroke-dashoffset: 100;
}

.js .animate.is-in .lj-line {
  stroke-dashoffset: 0;
}

.lj-area {
  transition: opacity 1s var(--ease-out) 1.2s;
}

.js .animate .lj-area {
  opacity: 0;
}

.js .animate.is-in .lj-area {
  opacity: 1;
}

.lj-dot {
  fill: var(--accent);
  stroke: #0b0e1d;
  stroke-width: 2.5;
  transition: opacity 0.4s 2s;
}

.lj-spark .lj-dot,
.lj-dot--b {
  fill: #5b8cff;
}

.js .animate .lj-dot {
  opacity: 0;
}

.js .animate.is-in .lj-dot {
  opacity: 1;
}

.lj-axis {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  text-align: center;
}

/* floating card */
.lj-float {
  width: min(330px, 86%);
}

.lj-float .viz-head {
  flex-wrap: nowrap;
}

.lj-float-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lj-float .viz-title {
  font-size: 14px;
  line-height: 1.35;
}

.lj-float .drv {
  grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 40px;
}

/* at-a-glance strip */
.lj-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 4.5rem);
  list-style: none;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.lj-glance li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.3s;
}

.lj-glance li + li {
  border-left: 1px solid var(--line);
}

.lj-glance li:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

@media (max-width: 999px) {
  .lj-hero-visual {
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .lj-glance {
    grid-template-columns: minmax(0, 1fr);
  }

  .lj-glance li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Route becomes a vertical timeline on narrow screens */
@media (max-width: 560px) {
  .lj-route {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .lj-route li {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 0 0 16px;
  }

  .lj-route li:last-child {
    padding-bottom: 0;
  }

  .lj-route li::before,
  .lj-route li::after {
    top: 30px;
    bottom: 4px;
    left: 12px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .lj-route li::before {
    background: repeating-linear-gradient(180deg, var(--line-3) 0 4px, transparent 4px 8px);
  }

  .lj-route li::after {
    background: linear-gradient(180deg, var(--accent), #22d3ee);
    transform-origin: 50% 0;
    transform: scaleY(var(--fill, 0));
  }

  .js .animate .lj-route li::after {
    transform: scaleY(0);
  }

  .js .animate.is-in .lj-route li::after {
    transform: scaleY(var(--fill, 0));
  }

  .lj-step-text .sub {
    margin-top: 1px;
  }

  .lj-route-pulse {
    display: none;
  }

  .lj-bars.bars {
    gap: 5px;
  }

  .lj-float .drv {
    grid-template-columns: minmax(0, 92px) minmax(0, 1fr) 36px;
  }

  .lj-float-meta .sample {
    display: none;
  }

  .lj-journey .window-meta .tag {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Capabilities bento
   -------------------------------------------------------------------------- */
.lj-cap {
  min-height: 0;
}

.lj-cap .ai-tag {
  color: var(--accent-text);
  font-size: 0.78rem;
  line-height: 1.4;
}

.lj-cap > h3 {
  margin-top: 2px;
}

.lj-cap--wide {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  gap: clamp(20px, 3vw, 36px);
}

.lj-cap--flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.lj-cap--flip .lj-cap-copy {
  order: 2;
}

.lj-cap-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.lj-cap-text {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: auto;
}

.lj-cap-text .link-arrow {
  margin-top: 2px;
  padding-top: 0;
}

.lj-cap--wide .lj-cap-viz {
  align-self: center;
}

.lj-cap-viz {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  margin-bottom: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    rgba(5, 6, 11, 0.45);
  color: var(--text-3);
  font-size: 12.5px;
}

.lj-cap--wide .lj-cap-viz {
  margin-bottom: 0;
}

.lj-viz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* 01 — spend alignment chain */
.lj-chain {
  position: relative;
}

.lj-chain::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--warn), var(--line-3) 40%, var(--accent));
  opacity: 0.6;
}

.lj-chain-flow {
  position: absolute;
  left: 13px;
  top: 18px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--accent), 0 0 3px #fff;
  opacity: 0;
}

.animate.is-in .lj-chain-flow {
  animation: lj-chain-run 3.4s var(--ease) 1.4s infinite;
}

@keyframes lj-chain-run {
  0% { top: 14px; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 22px); opacity: 0; }
}

.lj-chain-list {
  position: relative;
  display: grid;
  gap: 10px;
  list-style: none;
}

.lj-chain-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 10px 7px 0;
  border-radius: 12px;
  background: linear-gradient(90deg, transparent 17px, rgba(255, 255, 255, 0.025) 17px);
}

.lj-chain-list li.is-hot {
  background: linear-gradient(90deg, transparent 17px, color-mix(in srgb, var(--accent) 9%, transparent) 17px);
}

.lj-chain-ico {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #10142a;
  color: var(--text-2);
}

.lj-chain-ico svg {
  width: 16px;
  height: 16px;
}

.lj-chain-list li:first-child .lj-chain-ico {
  border-color: rgba(255, 181, 71, 0.45);
  color: var(--warn);
}

.lj-chain-list li.is-hot .lj-chain-ico {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, #10142a);
  color: var(--accent-text);
  box-shadow: 0 0 18px -4px var(--accent);
}

.lj-chain-txt {
  display: grid;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.lj-chain-txt small {
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
}

.lj-chain-list li.is-hot .lj-chain-txt {
  color: var(--accent-text);
}

/* 02 — bottleneck funnel */
.lj-funnel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 0 2px;
}

.lj-fn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--w, 100%);
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease-out);
}

.lj-fn:nth-child(2) {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-text);
  transition-delay: 0.25s;
}

.lj-fn.is-hot {
  position: relative;
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), #22d3ee);
  color: #03130d;
  font-weight: 500;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 75%, transparent);
  transition-delay: 0.5s;
}

.lj-fn.is-hot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  animation: lj-ring 2.4s var(--ease-out) infinite;
}

@keyframes lj-ring {
  from { opacity: 1; transform: scale(0.96); }
  to { opacity: 0; transform: scale(1.12); }
}

.js .animate .lj-fn {
  opacity: 0;
  transform: scaleX(0.3);
}

.js .animate.is-in .lj-fn {
  opacity: 1;
  transform: none;
}

/* 03 — re-routed path */
.lj-reroute {
  min-height: 0;
}

.lj-reroute-svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 2px 0 6px;
  overflow: visible;
}

.lj-old {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
}

.lj-new {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent));
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.5s;
}

.js .animate .lj-new {
  stroke-dashoffset: 100;
}

.js .animate.is-in .lj-new {
  stroke-dashoffset: 0;
}

.lj-new-flow {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  opacity: 0;
  transition: opacity 0.6s 2s;
  animation: lj-dash 1.2s linear infinite;
}

.animate.is-in .lj-new-flow {
  opacity: 0.7;
}

@keyframes lj-dash {
  to { stroke-dashoffset: -16; }
}

.lj-n {
  stroke-width: 2.5;
}

.lj-n--start {
  fill: #0f1226;
  stroke: var(--text-3);
}

.lj-n--mid {
  fill: var(--accent);
  stroke: #0b0e1d;
}

.lj-n--end {
  fill: #0f1226;
  stroke: var(--accent);
}

.lj-reroute-chip {
  position: absolute;
  font-size: 11px;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.lj-reroute-chip--a {
  top: 50px;
  left: 16px;
}

.lj-reroute-chip--a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
}

.lj-reroute-chip--b {
  right: 14px;
  bottom: 16px;
  transition-delay: 0.9s;
}

.js .animate .lj-reroute-chip {
  opacity: 0;
  transform: translateY(6px);
}

.js .animate.is-in .lj-reroute-chip {
  opacity: 1;
  transform: none;
}

/* 04 — readiness trend */
.lj-trend .legend {
  margin-top: -4px;
}

.lj-trend-svg {
  margin-top: 2px;
}

@media (max-width: 1100px) and (min-width: 961px) {
  .lj-cap--wide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .lj-cap--wide,
  .lj-cap--flip {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .lj-cap-copy {
    gap: 16px;
  }

  .lj-cap-copy .icon-box {
    display: none;
  }

  .lj-cap--flip .lj-cap-copy {
    order: 0;
  }

  .lj-cap--wide .lj-cap-viz {
    order: -1;
  }
}


/* --------------------------------------------------------------------------
   Outcome metrics — light sheet
   -------------------------------------------------------------------------- */
.lj-impact {
  padding: clamp(1rem, 3vw, 2rem) clamp(8px, 1.5vw, 20px);
}

.lj-sheet {
  --hl-grad: linear-gradient(100deg, #059669, #0891b2 50%, #2f5be0);
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-radius: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(62, 230, 176, 0.22), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(91, 140, 255, 0.12), transparent 70%),
    linear-gradient(rgba(11, 16, 32, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(11, 16, 32, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    #f2f8f6;
  color: #0b1020;
  overflow: hidden;
  isolation: isolate;
}

.lj-sheet .h2 {
  color: #0b1020;
}

.lj-sheet .kicker {
  color: #047857;
}

.lj-impact-head {
  display: grid;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .lj-impact-head {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .lj-key-card {
    justify-self: end;
  }
}

.lj-key-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(11, 16, 32, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: #4a5272;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.lj-key-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lj-key-card i,
.lj-cmp i {
  display: block;
  border-radius: 99px;
  background: rgba(11, 16, 32, 0.14);
}

.lj-key-card i {
  width: 22px;
  height: 8px;
}

.lj-key-card i.is-new,
.lj-cmp i.is-new {
  background: linear-gradient(90deg, #10b981, #0ea5e9 70%, #4f7cff);
  box-shadow: 0 6px 16px -6px rgba(16, 185, 129, 0.7);
}

.lj-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(11, 16, 32, 0.12);
}

.lj-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px) 4px;
}

.lj-stat:first-child {
  padding-left: 0;
}

.lj-stat + .lj-stat {
  border-left: 1px solid rgba(11, 16, 32, 0.1);
}

.lj-stat-idx {
  color: #7a8299;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.lj-stat strong {
  display: block;
  width: fit-content;
  font-family: var(--font-display);
  font-size: clamp(4rem, 2rem + 5.4vw, 7.4rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #0b1020 15%, #047857 60%, #0e7490);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lj-stat p {
  max-width: 26ch;
  color: #3c4663;
  font-size: 1.05rem;
  line-height: 1.5;
}

.lj-cmp {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 0.6rem;
}

.lj-cmp i {
  width: var(--w, 100%);
  height: 10px;
  transform-origin: 0 50%;
  transition: transform 1.2s var(--ease-out) 0.3s;
}

.lj-cmp i.is-new {
  transition-delay: 0.6s;
}

.js .lj-cmp.animate i {
  transform: scaleX(0);
}

.js .lj-cmp.animate.is-in i {
  transform: none;
}

@media (max-width: 760px) {
  .lj-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .lj-stat,
  .lj-stat:first-child {
    padding: 26px 0;
  }

  .lj-stat + .lj-stat {
    border-left: 0;
    border-top: 1px solid rgba(11, 16, 32, 0.1);
  }
}

/* --------------------------------------------------------------------------
   Story — scroll-pinned walkthrough
   -------------------------------------------------------------------------- */
.lj-story .st-grid {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(62, 230, 176, 0.11), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(91, 140, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
}

@media (min-width: 960px) {
  .lj-story .st-grid {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .lj-story .st-tab {
    padding: 18px 18px;
    font-size: 1.1rem;
  }
}

.lj-step {
  display: grid;
  align-items: center;
  gap: 28px;
  padding: clamp(22px, 3.2vw, 40px);
}

@media (min-width: 1100px) {
  .lj-step {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
  }
}

/* Small laptops: keep copy + visual side by side so the pinned panel fits the viewport */
@media (min-width: 960px) and (max-width: 1099px) {
  .lj-story .st-grid {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .lj-story .st-tab {
    padding: 14px 12px;
    font-size: 0.98rem;
  }

  .lj-step {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 22px;
    padding: 24px;
  }

  .lj-step-big,
  .lj-step .chips {
    display: none;
  }

  .lj-step-copy h3 {
    font-size: 1.6rem;
  }

  .lj-step-copy p {
    font-size: 1rem;
  }

  .lj-st-hint {
    left: 22px;
    max-width: 160px;
    font-size: 0.68rem;
    line-height: 1.4;
  }
}

.lj-step-copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.lj-step-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lj-step-big {
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1.2px color-mix(in srgb, var(--accent) 65%, transparent);
}

.lj-step-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lj-step-copy p {
  max-width: 34ch;
  color: var(--text-2);
  font-size: 1.1rem;
}

.lj-step .chips--mono .chip {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}

.lj-step:not([hidden]) .chips--mono .chip {
  opacity: 1;
  transform: none;
}

.lj-step .chips--mono .chip:nth-child(2) {
  transition-delay: 0.08s;
}

.lj-mini {
  border-radius: 18px;
}

.lj-mini .window-body {
  gap: 14px;
}

.lj-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 181, 71, 0.3);
  background: rgba(255, 181, 71, 0.07);
}

.lj-event-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 181, 71, 0.16);
  color: var(--warn);
}

.lj-event-ico svg {
  width: 16px;
  height: 16px;
}

.lj-event strong {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

.lj-event span:not([class]) {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}

.lj-plan-new {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent) !important;
  background: color-mix(in srgb, var(--accent) 10%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.lj-plan-new .plan-text {
  color: var(--text);
}

.lj-out {
  display: grid;
  gap: 8px;
}

.lj-out-chart {
  position: relative;
}

.lj-marker {
  position: absolute;
  top: -2px;
  bottom: 0;
  left: var(--x, 50%);
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.35);
}

.lj-marker span {
  position: absolute;
  top: -4px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(62, 230, 176, 0.14);
  color: #86f2cf;
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.js .animate .lj-marker {
  opacity: 0;
}

.js .animate.is-in .lj-marker {
  opacity: 1;
  transition: opacity 0.5s 1.4s;
}

.lj-st-hint {
  display: none;
}

@media (min-width: 960px) and (min-height: 620px) {
  .lj-st-hint {
    position: absolute;
    left: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-4);
    font-family: var(--font-mono);
    font-size: 0.74rem;
  }
}

.lj-mouse {
  position: relative;
  width: 18px;
  height: 28px;
  border-radius: 10px;
  border: 1.5px solid var(--line-3);
}

.lj-mouse i {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: lj-wheel 1.8s var(--ease) infinite;
}

@keyframes lj-wheel {
  0% { opacity: 0; transform: translateY(-2px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 959px), (max-height: 619px) {
  .lj-story .st-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lj-story .st-tab {
    padding: 12px 10px;
  }
}

@media (max-width: 520px) {
  .lj-story .st-tab {
    font-size: 0.86rem;
  }

  .lj-step-big {
    font-size: 2.8rem;
  }

  .lj-event {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .lj-event .tag {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Integrations hub — data flowing into the core
   -------------------------------------------------------------------------- */
.lj-band {
  background:
    radial-gradient(70% 120% at 100% 50%, rgba(62, 230, 176, 0.15), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(91, 140, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005)),
    var(--panel);
}

.lj-hub {
  width: min(100%, 400px);
}

.lj-hub::before {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.lj-hub .hub-core {
  z-index: 3;
}

/* Counter-rotate each chip around its own centre (the shared rule rotates it
   around the pre-translate box centre, which makes wide chips wobble off the ring). */
.lj-hub .hub-orbit > span {
  z-index: 2;
  transform-origin: 0 0;
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(5, 6, 11, 0.6);
}

.lj-spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 1px;
  transform-origin: 0 50%;
  transform: rotate(var(--a, 0deg));
  background: linear-gradient(90deg, transparent 18%, color-mix(in srgb, var(--accent) 50%, transparent) 50%, color-mix(in srgb, var(--accent) 20%, transparent));
}

.lj-spoke::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 70%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent), 0 0 3px #fff;
  animation: lj-inflow 2.8s var(--ease) infinite;
  animation-delay: var(--dl, 0s);
}

@keyframes lj-inflow {
  0% { left: 86%; opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 24%; opacity: 0; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.lj-faq-head {
  justify-items: start;
}

.lj-faq-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px 14px;
  width: min(100%, 360px);
  margin-top: 0.8rem;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--panel);
}

.lj-faq-card .lj-pill-icon {
  width: 34px;
  height: 34px;
}

.lj-faq-card .lj-pill-icon svg {
  width: 17px;
  height: 17px;
}

.lj-faq-card p {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.45;
}

.lj-faq-card .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.lj-cta-panel .aurora i:nth-child(1) { --c: #3ee6b0; --o: 0.22; left: 30%; top: -40%; }
.lj-cta-panel .aurora i:nth-child(2) { --c: #22d3ee; --o: 0.16; left: 70%; top: 40%; }
.lj-cta-panel .aurora i:nth-child(3) { --c: #5b8cff; --o: 0.14; left: -10%; top: 30%; }

.lj-cta-route {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

.lj-cta-route svg {
  width: 100%;
  height: 100%;
}

.lj-cta-route path {
  fill: none;
  stroke: rgba(62, 230, 176, 0.45);
  stroke-dasharray: 3 9;
  vector-effect: non-scaling-stroke;
  stroke-width: 1.6;
  animation: lj-dash 1.4s linear infinite;
}

.lj-cta-route i {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #0b0e1d;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent);
}

.lj-cta-route i.is-end {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: var(--accent);
  animation: node-pulse 1.8s infinite;
}

.lj-cta-panel .lj-pill {
  margin-bottom: -0.2rem;
}

@media (max-width: 640px) {
  .lj-cta-route i {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: everything visible, nothing travelling
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .animate .lj-route li::after,
  .js .animate .lj-node,
  .js .animate .lj-fn,
  .js .animate .lj-reroute-chip,
  .js .lj-cmp.animate i {
    opacity: 1 !important;
  }

  .lj-route-pulse,
  .lj-chain-flow,
  .lj-st-hint {
    display: none;
  }

  .lj-spoke::after {
    left: 70%;
    opacity: 0.9;
  }

  .lj-step .chips--mono .chip {
    opacity: 1;
    transform: none;
  }

  .lj-new-flow {
    opacity: 0.5;
  }
}
