/* zCloud motion. Builds on ci-motion.css (phone stage, map, race). */

/* ---------- Partner logos along the foot of the stage ---------- */
.zc-strip {
  position: absolute;
  left: 0;
  right: 14px;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  height: 76px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 26, 43, 0.82);
}

.zc-chip {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 92px;
  padding: 7px 12px 5px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0 0 0 rgba(242, 106, 33, 0);
}

.zc-chip img {
  display: block;
  height: 20px;
  width: auto;
}

.zc-chip small {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ci-stage[data-scene="0"] .zc-chip {
  animation: zc-ping 1.1s ease var(--d, 0s) 2;
}

@keyframes zc-ping {
  50% { box-shadow: 0 0 0 5px rgba(242, 106, 33, 0.85); }
}

/* ---------- Inside the phone ---------- */
.zc-h {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.zc-k {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.zc-acct {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink);
}

.zc-acct img {
  max-width: 50px;
  max-height: 16px;
}

.zc-acct span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--good);
}

.zc-big {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.zc-stack {
  display: flex;
  height: 14px;
  margin: 4px 0 2px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--rule-2);
}

.zc-stack i {
  display: block;
  width: 0;
  height: 100%;
  transition: width 0.7s ease;
}

.on .zc-stack i {
  width: var(--w);
  transition-delay: var(--d, 0s);
}

.zc-legend {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  list-style: none;
}

.zc-legend li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
}

.zc-legend li b {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 2px;
}

.zc-legend li span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
}

.zc-warn {
  padding: 9px 11px;
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  background: var(--orange-wash);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
}

.zc-fix {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink);
}

.zc-fix span {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--good);
}

.zc-total {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
}

.zc-total b {
  display: block;
  font-size: 20px;
  color: var(--mint);
}

/* Commitment ladder */
.zc-ladder {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding: 12px 12px 0;
  border-radius: 10px;
  background: #fff;
}

.zc-ladder > i {
  position: relative;
  flex: 1;
  height: 0;
  border-radius: 2px 2px 0 0;
  background: #c9d3dc;
  transition: height 0.6s ease;
}

.on .zc-ladder > i {
  height: var(--h);
  transition-delay: var(--d, 0s);
}

.zc-ladder > i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--orange);
  transition: height 0.5s ease;
}

.on .zc-ladder > i::after {
  height: var(--c);
  transition-delay: calc(var(--d, 0s) + 1.6s);
}

.zc-floor {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 62px;
  border-top: 1.5px dashed var(--navy);
}

.zc-floor small {
  position: absolute;
  right: 0;
  top: -15px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Statement */
.zc-rows {
  margin: 0;
  padding: 4px 12px;
  border-radius: 10px;
  background: #fff;
  list-style: none;
}

.zc-rows li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-2);
  font-size: 12.5px;
  color: var(--ink);
}

.zc-rows li:last-child {
  border-bottom: 0;
}

.zc-rows li span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.zc-rows li.save span {
  color: var(--good);
}

/* ---------- Map: logos in nodes, the orbit ---------- */
.ci-node img {
  display: block;
  height: 22px;
  width: auto;
  margin-bottom: 8px;
}

.ci-node img.tall {
  height: 28px;
}

.zc-orbit {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 14px auto 6px;
}

.zc-ring {
  position: absolute;
  inset: 0;
  border: 1.5px dashed var(--orange);
  border-radius: 50%;
  animation: zc-spin 30s linear infinite;
}

.zc-core {
  position: absolute;
  inset: 62px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--navy);
  text-align: center;
}

.zc-core b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.zc-core b span {
  color: var(--orange);
}

.zc-core small {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.zc-sat {
  position: absolute;
  width: 88px;
  height: 46px;
  margin: -23px 0 0 -44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 16px rgba(7, 26, 43, 0.12);
  animation: zc-spin 30s linear infinite reverse;
}

.zc-sat img {
  max-width: 64px;
  max-height: 22px;
}

.zc-sat.s1 { left: 50%; top: 0; }
.zc-sat.s2 { left: 93.3%; top: 75%; }
.zc-sat.s3 { left: 6.7%; top: 75%; }

@keyframes zc-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Waterfall ---------- */
.zc-fall {
  display: grid;
  gap: 10px;
  padding: 30px 30px 26px;
  border-radius: var(--radius);
  background: #fff;
}

.zc-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
}

.zc-row-lab b {
  display: block;
  font-size: 16.5px;
  line-height: 1.25;
  color: var(--ink);
}

.zc-row-lab small {
  display: block;
  margin-top: 1px;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink-3);
}

.zc-track {
  position: relative;
  height: 34px;
  border-radius: 2px;
  background: var(--rule-2);
}

.zc-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 2px;
  background: var(--orange);
  transition: width 0.7s ease;
}

.zc-row.total .zc-track i {
  background: var(--navy);
}

.zc-row.after .zc-track i {
  background: var(--good);
}

.zc-amt {
  text-align: right;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--orange-deep);
}

.zc-row.total .zc-amt {
  color: var(--ink);
}

.zc-row.after .zc-amt {
  color: var(--good);
}

.zc-row.after {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.zc-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.zc-why article {
  padding: 24px 24px 22px;
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  background: #fff;
}

.zc-why small {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.zc-why h3 {
  font-size: 22px;
}

.zc-why p {
  margin-top: 8px;
  font-size: 16.5px;
}

@media (max-width: 980px) {
  .zc-why {
    grid-template-columns: 1fr 1fr;
  }

  .zc-row {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 6px 12px;
  }

  .zc-row .zc-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 660px) {
  .zc-why {
    grid-template-columns: 1fr;
  }

  .zc-fall {
    padding: 20px 16px;
  }

  .zc-orbit {
    width: 220px;
    height: 220px;
  }

  .zc-core {
    inset: 52px;
  }
}

@container (max-width: 589px) {
  .zc-chip {
    min-width: 0;
    padding: 6px 8px 4px;
  }

  .zc-chip img {
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zc-ring,
  .zc-sat,
  .ci-stage[data-scene="0"] .zc-chip {
    animation: none !important;
  }

  .zc-stack i,
  .zc-ladder > i,
  .zc-ladder > i::after,
  .zc-track i {
    transition: none !important;
  }
}
