/* Shared by the home hero and the get-started product band. Loaded for
   both layouts in baseof, so the two pages cannot drift apart. */

/* ****** Hero lead-flow diagram ****** */
/* ************************************ */

.lead-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.lead-flow-stage {
  margin-top: 8px;
}

/* Phone log, inside the panel under the numbers, same as the SVG one. */
.lfd-log {
  display: none;
}

.lfd-stack-hub .lfd-log {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 2px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid #e7edf6;
  list-style: none;
}

.lfd-stack-hub .lfd-log:empty {
  display: none;
}

.lfd-stack-hub .lfd-log li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #56657c;
}

.lfd-stack-hub .lfd-log li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--orange);
}

.lfd-stack-hub .lfd-log li.is-ok::before { background: #1f7a52; }
.lfd-stack-hub .lfd-log li.is-ko::before { background: #c0392b; }
.lfd-stack-hub .lfd-log li:nth-child(2) { opacity: 0.7; }
.lfd-stack-hub .lfd-log li:nth-child(3) { opacity: 0.45; }

.lead-flow-caption {
  max-width: 620px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 15.5px;
  color: var(--gray-600, #636363);
}

/* ---------- Desktop SVG ---------- */

.lfd {
  display: block;
  width: 100%;
  max-width: 1060px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.lfd-card rect {
  fill: #fff;
  stroke: #dfe6f1;
  stroke-width: 1.5;
}

.lfd-card text {
  font-size: 17px;
  font-weight: 600;
  fill: #1f2f46;
}

.lfd-col-label--right {
  text-anchor: end;
}

.lfd-col-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--new-blue);
}

.lfd-live {
  fill: #1f7a52;
}

/* The panel sits in the same family as the source and buyer cards, just
   lifted: a blue fill this size read as a slab dropped on the page. */
.lfd-hub-bg {
  fill: #fff;
  stroke: #dde7f4;
  stroke-width: 1.5;
  filter: drop-shadow(0 16px 34px rgba(0, 47, 108, 0.13));
}

.lfd-wire {
  fill: none;
  stroke: #c9d6e8;
  stroke-width: 2;
}

/* Engine: a pipeline across, then the numbers. Each step lights in turn on a
   shared 2.4s loop, offset by index in the markup, and the filled segment
   sweeps with them, so the panel reads as working rather than static. */

.lfd-pipe-rail {
  stroke: #dfe6f1;
  stroke-width: 3;
  stroke-linecap: round;
}

/* pathLength="100" on the line, so the dash maths does not depend on how wide
   the pipeline ends up. */
.lfd-pipe-fill {
  stroke: var(--new-blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  animation: lfd-pipe-sweep 2.4s linear infinite;
}

@keyframes lfd-pipe-sweep {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.lfd-step-dot {
  fill: #fff;
  stroke: #c7d4e6;
  stroke-width: 2.5;
}

.lfd-step-text {
  font-size: 13px;
  font-weight: 600;
  fill: #56657c;
  text-anchor: middle;
}

.lfd-step {
  animation: lfd-step-pulse 2.4s linear infinite;
}

@keyframes lfd-step-pulse {
  0%, 26%, 100% {
    opacity: 0.9;
  }
  9% {
    opacity: 1;
  }
}

.lfd-step .lfd-step-dot {
  animation: lfd-step-led 2.4s linear infinite;
  animation-delay: inherit;
}

@keyframes lfd-step-led {
  0%, 26%, 100% {
    fill: #fff;
    stroke: #c7d4e6;
    r: 6;
  }
  9% {
    fill: var(--orange);
    stroke: var(--orange);
    r: 7.5;
  }
}

.lfd-hub-rule {
  stroke: #e7edf6;
  stroke-width: 1.5;
}

.lfd-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: #7c8899;
  text-anchor: middle;
}

.lfd-stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  fill: #0b2545;
  text-anchor: middle;
}

/* ---------- Travelling leads ---------- */

/* One pool, borrowed a dot at a time by the ticker. Nothing loops on its own:
   a dot exists because an event happened, which is also why it is in the log
   and in the numbers. Where offset-path is unsupported none is drawn, rather
   than the lot parking on a path origin. */
.lfd-mover {
  display: none;
}

@supports (offset-path: path("M0 0 L1 1")) {
  .lfd-mover {
    display: block;
    transform-box: view-box;
    offset-rotate: 0deg;
    opacity: 0;
  }
}

.lfd-mover.is-in {
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 3;
}

.lfd-mover.is-out {
  fill: var(--new-blue);
  stroke: #fff;
  stroke-width: 3;
}

.lfd-mover.is-ko {
  fill: #c0392b;
  stroke: #fff;
  stroke-width: 3;
}

@keyframes lfd-run {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8%, 88% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

/* ---------- Log inside the engine ---------- */

.lfd-svglog-text {
  font-size: 12.5px;
  font-weight: 600;
  fill: #56657c;
}

.lfd-svglog-dot {
  fill: var(--orange);
}

.lfd-svglog-dot.is-ok {
  fill: #1f7a52;
}

.lfd-svglog-dot.is-ko {
  fill: #c0392b;
}

/* ---------- Phone stack ---------- */

.lfd-stack {
  display: none;
}

.lfd-stack-label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--new-blue);
}

.lfd-stack-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lfd-stack-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #dfe6f1;
  font-size: 14.5px;
  font-weight: 600;
  color: #1f2f46;
}

.lfd-stack-row img {
  display: block;
  width: 22px;
  height: 22px;
}

.lfd-stack-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f7a52;
}

/* The track is as wide as a dot, with the line drawn inside it. A 2px-wide
   track would clip the dots to slivers, since it also has to hide them as
   they leave. */
.lfd-stack-wire {
  position: relative;
  width: 12px;
  height: 56px;
  margin: 12px auto;
  overflow: hidden;
}

.lfd-stack-wire::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #c9d6e8;
}

.lfd-stack-wire i {
  position: absolute;
  left: 1px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  animation: lfd-fall 2.4s linear infinite;
}

.lfd-stack-wire--out i {
  background: var(--new-blue);
}

.lfd-stack-wire i:nth-child(2) {
  animation-delay: -0.8s;
}

.lfd-stack-wire i:nth-child(3) {
  animation-delay: -1.6s;
}

@keyframes lfd-fall {
  from {
    transform: translateY(-12px);
  }
  to {
    transform: translateY(56px);
  }
}

.lfd-stack-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid #dde7f4;
  box-shadow: 0 14px 30px rgba(0, 47, 108, 0.12);
}

.lfd-stack-hub img {
  display: block;
  width: 104px;
  height: auto;
}

.lfd-stack-stages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lfd-stack-stages li {
  padding: 5px 11px;
  border-radius: 8px;
  background: #f1f5fb;
  font-size: 12.5px;
  font-weight: 600;
  color: #56657c;
}

.lfd-stack-stats {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.lfd-stack-stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e7edf6;
}

.lfd-stack-stats span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7c8899;
}

.lfd-stack-stats b {
  font-size: 17px;
  font-weight: 800;
  color: #0b2545;
}


@media (max-width: 899px) {
  .lfd {
    display: none;
  }

  .lfd-stack {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lfd-mover,
  .lfd-step,
  .lfd-step .lfd-step-dot,
  .lfd-pipe-fill,
  .lfd-stack-wire i {
    animation: none;
  }

  /* The ticker does not run, so no dot is ever handed a path. */
  .lfd-mover {
    display: none;
  }

  .lfd-stack-wire i {
    display: none;
  }
}
