/* Purchase path and connected systems (includes/visuals/checkout.php) */
.ck-label { margin: 0 0 6px; }
.ck-label--sys { margin: 4px 0 12px; }
.ck-steps, .ck-sys { list-style: none; margin: 0; padding: 0; }
.ck-name { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--forest); }
.ck-detail { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.ck-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); color: var(--forest); font-size: 14.5px; font-weight: 700; box-shadow: inset 0 0 0 2px var(--forest);
}
.section--paper .ck-dot { background: var(--white); }
.ck-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.ck-talk-t { font-size: 13px; color: var(--ink-2); }

/* order token */
.ck-token {
  position: absolute; left: 10%; top: 2px; display: inline-flex; align-items: center; gap: 7px; transform: translateX(-50%);
  padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--forest); color: var(--white);
  font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; box-shadow: 0 6px 16px rgba(12, 43, 21, .22);
}
.ck-token::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--forest); }
.ck-box { position: relative; width: 14px; height: 11px; border-radius: 2px; background: var(--green); flex: none; }
.ck-box::after { content: ""; position: absolute; left: 6px; top: 0; width: 2px; height: 100%; background: var(--forest); opacity: .55; }

/* systems */
.ck-sysi { display: flex; flex-direction: column; gap: 3px; padding: 13px 12px 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.section--paper .ck-sysi { background: var(--paper); border-color: transparent; }
.ck-sys-n { font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--forest); }
.ck-sys-d { font-size: 13px; line-height: 1.4; color: var(--ink-2); }

/* wide screens: horizontal track, links, systems row */
@media (min-width: 900px) {
  .ck-lane { position: relative; height: 42px; overflow: hidden; }
  .ck-run { position: absolute; inset: 0; }
  .ck-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ck-steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 18px; height: 2px; background: var(--forest); opacity: .25; }
  .ck-step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 10px 12px; text-align: center; }
  .ck-step::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #7d8a80; }
  .ck-dot { margin-bottom: 12px; }
  .ck-talk { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .ck-links { display: block; width: 100%; height: 96px; overflow: visible; }
  .ck-sys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ck-sysi { position: relative; margin: 0 5px; align-items: center; text-align: center; }
  .ck-sysi::before { content: ""; position: absolute; left: 50%; top: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #7d8a80; }
  /* the systems label goes under the row so it does not cut the links */
  .ck { display: flex; flex-direction: column; }
  .ck-label--sys { order: 1; margin: 14px 0 0; text-align: center; }
}
.ck-link { fill: none; stroke: #7d8a80; stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }

/* phones: vertical track, chips under each step, systems as a glossary */
@media (max-width: 899px) {
  .ck-lane, .ck-links { display: none; }
  .ck-steps { position: relative; display: grid; gap: 20px; margin-top: 10px; }
  .ck-steps::before { content: ""; position: absolute; left: 18px; top: 19px; bottom: 19px; width: 2px; background: var(--forest); opacity: .25; }
  .ck-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0 14px; }
  .ck-dot { grid-row: span 3; }
  .ck-name { padding-top: 8px; }
  .ck-talk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
  .ck-label--sys { margin-top: 28px; }
  .ck-sys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 380px) { .ck-sys { grid-template-columns: minmax(0, 1fr); } }

/* animation: steps, links and systems appear; then the order travels, each step and its links light up in turn */
.ck-s2 { --ck-i: 1; } .ck-s3 { --ck-i: 2; } .ck-s4 { --ck-i: 3; } .ck-s5 { --ck-i: 4; }
.js .vz-figure .ck-step, .js .vz-figure .ck-sysi { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(.2s + var(--ck-i, 0) * .12s); }
.js .vz-figure .ck-sysi { transition-delay: 1s; }
.js .vz-figure .ck-links { opacity: 0; transition: opacity .6s ease .8s; }
.js .vz-figure .ck-token { opacity: 0; transition: opacity .4s ease 1.2s; }
.js .vz-figure.is-visible .ck-step, .js .vz-figure.is-visible .ck-sysi { opacity: 1; transform: none; }
.js .vz-figure.is-visible .ck-links, .js .vz-figure.is-visible .ck-token { opacity: 1; }
.js .vz-figure.is-visible .ck-run { animation: ck-run 10s ease-in-out 1.6s infinite; }
.js .vz-figure.is-visible .ck-dot { animation: ck-lit 10s linear infinite; animation-delay: calc(1.6s + var(--ck-i, 0) * 2s); }
.js .vz-figure.is-visible .ck-link { animation: ck-flow 1.2s linear infinite, ck-link 10s linear infinite; animation-delay: 0s, calc(1.6s + var(--ck-i, 0) * 2s); }
@keyframes ck-run {
  0%, 12% { transform: translateX(0); opacity: 1; }
  20%, 32% { transform: translateX(20%); }
  40%, 52% { transform: translateX(40%); }
  60%, 72% { transform: translateX(60%); }
  80%, 94% { transform: translateX(80%); opacity: 1; }
  98% { transform: translateX(80%); opacity: 0; }
  99% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes ck-lit {
  0% { background: var(--white); color: var(--forest); }
  2%, 14% { background: var(--forest); color: var(--green); transform: scale(1.12); }
  18%, 100% { background: var(--white); color: var(--forest); transform: none; }
}
@keyframes ck-link {
  0% { stroke: #7d8a80; stroke-width: 1.5; }
  2%, 14% { stroke: var(--green-text); stroke-width: 2.6; }
  18%, 100% { stroke: #7d8a80; stroke-width: 1.5; }
}
@keyframes ck-flow { to { stroke-dashoffset: -18; } }
