/* ===========================================================================
   Homepage sections that do something.
   =========================================================================== */

/* ── Figures strip ───────────────────────────────────────────────────────── */
.figures {
  background: var(--paper);
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.figures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.figure {
  border-left: 2px solid rgba(20, 112, 106, 0.22);
  padding-left: 18px;
}
.figure b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.figure span {
  display: block;
  margin-top: 7px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 22ch;
}
@media (max-width: 760px) {
  .figures__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .figure b {
    font-size: 2.3rem;
  }
}

/* ── Positioning chart ───────────────────────────────────────────────────── */
.plot {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 46px;
}
/* Clipped, not visible. A rotated end-anchored axis label was drawing upward
   out of the viewBox and landing on the paragraph above it. */
.plot svg {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.plot__grid line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}
.plot__axis line {
  stroke: rgba(28, 42, 39, 0.35);
  stroke-width: 1.4;
}
.plot__axis path {
  fill: rgba(28, 42, 39, 0.35);
}
.plot__ax {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  fill: var(--muted);
}
.plot__ax--end {
  text-anchor: end;
}
.plot__ay {
  text-anchor: middle;
}

/* The hole in the market. Drawn as a soft dashed field rather than a hard
   shape, because it is an absence, not a thing. */
.plot__hole ellipse {
  fill: rgba(99, 231, 127, 0.09);
  stroke: rgba(20, 112, 106, 0.35);
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
}
.plot__hole text {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  fill: var(--teal);
  text-anchor: middle;
}

.plot__dot circle {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.5;
}
.plot__dot text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}
.plot__cap {
  font-size: 11px !important;
  font-weight: 500 !important;
  fill: var(--muted) !important;
}

.plot__dot--us circle {
  fill: var(--ink-2);
  stroke: var(--teal);
  stroke-width: 2;
}
.plot__dot--us text {
  fill: #fff;
}
.plot__halo {
  fill: none !important;
  stroke: var(--spring) !important;
  stroke-width: 1.5 !important;
  opacity: 0.5;
}

/* Everything lands on scroll, in reading order, us last. */
.plot__dot,
.plot__hole {
  opacity: 0;
  transform: scale(0.82);
  transform-origin: center;
  transform-box: fill-box;
}
.plot.is-in .plot__dot,
.plot.is-in .plot__hole {
  animation: pop 0.62s cubic-bezier(0.2, 1.3, 0.4, 1) forwards;
  animation-delay: calc(var(--i) * 130ms);
}
@keyframes pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.plot.is-in .plot__halo {
  animation: halo 2.6s 1.3s ease-out infinite;
}
@keyframes halo {
  0% {
    r: 40;
    opacity: 0.55;
  }
  70%,
  100% {
    r: 66;
    opacity: 0;
  }
}

.plot__key {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}
.plot__key li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  padding-left: 16px;
  border-left: 2px solid var(--line);
}
.plot__key b {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.plot__key .is-us {
  border-left-color: var(--spring);
}
.plot__key .is-us b {
  color: var(--teal);
}

@media (max-width: 900px) {
  .plot {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ── Employee journey ────────────────────────────────────────────────────
   The hero promises to manage the whole employee journey and nothing on the
   page showed it. Six stops on one line, because the line is the argument:
   it is continuous, so the handovers that usually leak do not exist. */
.journey {
  background: var(--paper-2);
  padding: 104px 0;
}

.track {
  position: relative;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

/* The thread everything hangs off. Drawn left to right on arrival. */
.track__line {
  position: absolute;
  top: 21px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(to right, var(--teal-soft), var(--teal), var(--teal-soft));
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
}
.track.is-in .track__line {
  animation: thread 1.15s 0.15s cubic-bezier(0.3, 0.8, 0.3, 1) forwards;
}
@keyframes thread {
  to {
    transform: scaleX(1);
  }
}

.stop {
  position: relative;
  opacity: 0;
  transform: translateY(12px);
}
.track.is-in .stop {
  animation: stop-in 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  animation-delay: calc(0.35s + var(--i) * 0.13s);
}
@keyframes stop-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.stop__pin {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--teal);
  color: var(--teal);
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -8px rgba(20, 112, 106, 0.4);
}
.stop__pin svg {
  width: 21px;
  height: 21px;
}
/* The last stop is the payslip — the one everybody is waiting for. */
.stop:last-child .stop__pin {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--spring);
}

.stop__when {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 5px;
}
.stop__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 7px;
}
.stop__body {
  display: block;
  font-size: 0.83rem;
  line-height: 1.52;
  color: var(--muted);
}

@media (max-width: 1050px) {
  .track {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 22px;
  }
  .track__line {
    display: none;
  }
}
@media (max-width: 680px) {
  .track {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .stop {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
  }
  .stop__pin {
    margin-bottom: 0;
    grid-row: span 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track__line,
  .stop {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* The sprite itself never renders; only <use> references do. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
/* ── Year switch ─────────────────────────────────────────────────────────── */
.years {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  margin-top: 44px;
  padding: 30px;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(4, 35, 31, 0.7);
}
.years__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.years__head .seg {
  background: rgba(255, 255, 255, 0.07);
}
.years__note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
}

.band {
  display: grid;
  grid-template-columns: 1fr 96px 42px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.8rem;
  animation: band-in 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-delay: calc(var(--i) * 55ms);
}
@keyframes band-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}
.band__range {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
}
.band__track {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.band__track i {
  display: block;
  height: 100%;
  width: var(--w);
  max-width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(99, 231, 127, 0.45), var(--spring));
}
.band__rate {
  text-align: right;
  color: #fff;
  font-size: 0.8rem;
}

.years__out {
  display: grid;
  gap: 12px;
}
.years__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.years__stat span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}
.years__stat b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.28rem;
  font-weight: 500;
  color: #fff;
}
.years__stat--net {
  background: rgba(99, 231, 127, 0.12);
  border-color: rgba(99, 231, 127, 0.32);
}
.years__stat--net span,
.years__stat--net b {
  color: var(--spring);
}
.years__delta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .years {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 22px;
  }
}

/* ── Door feed ───────────────────────────────────────────────────────────── */
.scan {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.scan.is-new {
  opacity: 0;
  transform: translateY(-10px);
}
.scan__pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spring);
}
.scan.is-skip .scan__pip {
  background: rgba(255, 255, 255, 0.22);
}
.scan.is-out .scan__pip {
  background: #7fd4ff;
}
.scan__name {
  font-weight: 600;
  color: #fff;
}
.scan.is-skip .scan__name {
  color: rgba(255, 255, 255, 0.4);
}
.scan__at {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.scan__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spring);
  min-width: 72px;
  text-align: right;
}
.scan.is-out .scan__tag {
  color: #7fd4ff;
}
.scan.is-skip .scan__tag {
  color: rgba(255, 255, 255, 0.3);
}

/* ── Isolation proof ─────────────────────────────────────────────────────── */
.proof {
  border-radius: 18px;
  background: #04231f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(4, 35, 31, 0.6);
}
.proof__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.proof__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.proof__bar b {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.42);
}
.proof__q {
  padding: 15px 18px 6px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.proof__q em {
  font-style: normal;
  color: var(--spring);
}
.proof__out {
  padding: 6px 18px 18px;
  display: grid;
  gap: 2px;
}
.proof__row,
.proof__done {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.proof__row.is-in,
.proof__done.is-in {
  opacity: 1;
  transform: none;
}
.proof__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 6px 0;
  font-size: 0.76rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.proof__t {
  color: rgba(255, 255, 255, 0.68);
}
.proof__m {
  color: rgba(255, 255, 255, 0.4);
}
.proof__o {
  color: var(--spring);
}
.proof__done {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(99, 231, 127, 0.12);
  border: 1px solid rgba(99, 231, 127, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--spring);
}

@media (prefers-reduced-motion: reduce) {
  .band,
  .scan,
  .proof__row,
  .proof__done {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
