/* Home page sections: the problem strip, the video frame, pillar module links, grouped numbers. */

.fl-hproblem {
  padding-block: 56px 64px;
}
.fl-hproblem__title {
  max-width: 22ch;
}
.fl-hproblem__steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-radius: var(--fl-radius-lg);
  counter-reset: fl-step;
}
.fl-hproblem__step {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  padding-bottom: 24px;
}
.fl-hproblem__step:last-child {
  padding-bottom: 0;
}
/* Phone: a vertical rail joins the steps. */
.fl-hproblem__step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(var(--fl-line-strong), transparent);
}
.fl-hproblem__step:last-child::before {
  display: none;
}
.fl-hproblem__icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--fl-ink);
}
.fl-hproblem__icon svg {
  width: 22px;
  height: 22px;
}
.fl-hproblem__stage {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fl-muted);
  font-weight: 500;
}
.fl-hproblem__pain {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--fl-ink);
  font-weight: 500;
}
.fl-hproblem__close {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fl-ink);
}
@media (min-width: 900px) {
  .fl-hproblem__steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    padding: 36px 32px;
  }
  .fl-hproblem__step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
    padding-bottom: 0;
  }
  .fl-hproblem__stage {
    min-height: 2.8em;
  }
  .fl-hproblem__icon {
    grid-row: auto;
    margin-bottom: 12px;
  }
  /* Desktop: the rail runs sideways towards the next step. */
  .fl-hproblem__step::before {
    left: 52px;
    right: -14px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--fl-line-strong), transparent);
  }
}

.fl-demo-video {
  margin: 0;
}
.fl-demo-video__frame {
  padding: 10px;
  border-radius: var(--fl-radius-xl);
}

.fl-demo-video figcaption {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fl-ink-2);
}

.fl-card__list--links a {
  color: inherit;
  text-decoration: none;
}
.fl-card__list--links a:hover,
.fl-card__list--links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fl-numbers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fl-numbers__group {
  padding: 24px 22px;
  border-radius: var(--fl-radius-lg);
}
.fl-numbers__name {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fl-numbers__name a {
  color: var(--fl-ink);
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.fl-numbers__name a:hover,
.fl-numbers__name a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fl-numbers__figs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.fl-numbers__figs li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fl-numbers__figs .fl-strip__num {
  font-size: clamp(36px, 4vw, 48px);
}
@media (min-width: 700px) {
  .fl-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .fl-numbers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.fl-eyebrow-hos {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fl-wordmark-2);
}

/* Journey diagram: every module node links to its pillar page */
.fl-dg-link { cursor: pointer; outline: none; }
.fl-dg-link .fl-dg-node { transition: stroke 0.2s ease, stroke-width 0.2s ease; }
.fl-dg-link:hover .fl-dg-node:not(.fl-dg-node--focal) { stroke: var(--fl-accent); stroke-width: 1.5; }
.fl-dg-link:hover .fl-dg-name:not(.fl-dg-on-dark) { fill: var(--fl-accent); }
.fl-dg-link:focus-visible .fl-dg-node { stroke: var(--fl-focus); stroke-width: 3; }

/* ---- Problem strip motion: a signal runs step to step, each pain lights up as it arrives ---- */
.fl-hproblem__step::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(34, 166, 179, 0.95), transparent) no-repeat;
  background-size: 100% 40%;
  background-position: 0 -60%;
  opacity: 0;
}
.fl-hproblem__step:last-child::after {
  display: none;
}
.fl-site.fl-js .fl-hproblem__step.fl-in::after {
  opacity: 1;
  animation: fl-hp-flow-y 3s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.6s + 0.8s);
}
@keyframes fl-hp-flow-y {
  0% { background-position: 0 -60%; }
  20%, 100% { background-position: 0 160%; }
}
.fl-hproblem__icon {
  position: relative;
}
.fl-hproblem__icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(34, 166, 179, 0.5);
}
.fl-site.fl-js .fl-hproblem__step.fl-in .fl-hproblem__icon::after {
  animation: fl-hp-ping 3s ease-out infinite;
  animation-delay: calc(var(--i, 0) * 0.6s + 0.2s);
}
@keyframes fl-hp-ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 166, 179, 0.5); }
  25%, 100% { box-shadow: 0 0 0 12px rgba(34, 166, 179, 0); }
}
.fl-hproblem__pain {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.fl-hproblem__pain::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #d6455d;
  box-shadow: 0 0 0 4px rgba(214, 69, 93, 0.14);
}
.fl-site.fl-js .fl-hproblem__pain::before {
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fl-site.fl-js .fl-hproblem__step.fl-in .fl-hproblem__pain::before {
  transform: scale(1);
  transition-delay: calc(var(--fl-delay, 0ms) + 600ms);
}
@media (min-width: 900px) {
  .fl-hproblem__step::after {
    left: 52px;
    right: -14px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 166, 179, 0.95), transparent) no-repeat;
    background-size: 40% 100%;
    background-position: -60% 0;
  }
  .fl-site.fl-js .fl-hproblem__step.fl-in::after {
    animation-name: fl-hp-flow-x;
  }
}
@keyframes fl-hp-flow-x {
  0% { background-position: -60% 0; }
  20%, 100% { background-position: 160% 0; }
}

/* ---- Pillar cards: equal height, links on one baseline ---- */
#pillars .fl-features > li {
  display: flex;
}
#pillars .fl-features .fl-card {
  flex: 1;
}

/* ---- Video: poster with a centred play button; no native controls ---- */
.fl-vplayer {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--fl-radius-xl) - 8px);
  background: #0f1724;
  aspect-ratio: 16 / 9;
}
.fl-vplayer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.fl-vplayer__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(15, 23, 36, 0.05), rgba(15, 23, 36, 0.35)),
    linear-gradient(180deg, rgba(15, 23, 36, 0) 55%, rgba(15, 23, 36, 0.6));
  transition: opacity 0.4s ease;
}
.fl-vplayer__meta {
  position: absolute;
  left: 20px;
  bottom: 18px;
  margin: 0;
  display: flex;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.fl-vplayer__meta span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: rgba(15, 23, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fl-vplayer__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 92px);
  height: clamp(64px, 9vw, 92px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--fl-ink);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -18px rgba(15, 23, 36, 0.7);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background 0.3s ease;
}
.fl-vplayer__btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: fl-vp-ring 2.4s ease-out infinite;
}
@keyframes fl-vp-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}
.fl-vplayer__btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}
.fl-vplayer__btn:focus-visible {
  outline: 3px solid var(--fl-focus);
  outline-offset: 4px;
}
.fl-vplayer__btn svg {
  width: 38%;
  height: 38%;
  fill: currentColor;
}
.fl-vplayer__play {
  margin-left: 8%;
}
.fl-vplayer__pause {
  display: none;
}
.fl-vplayer.is-playing .fl-vplayer__play {
  display: none;
}
.fl-vplayer.is-playing .fl-vplayer__pause {
  display: block;
}
/* Playing: the film is clean; the pause button appears only on hover or keyboard focus. */
.fl-vplayer.is-playing .fl-vplayer__btn {
  opacity: 0;
}
.fl-vplayer.is-playing .fl-vplayer__btn::before {
  animation: none;
  opacity: 0;
}
.fl-vplayer.is-playing:hover .fl-vplayer__btn,
.fl-vplayer.is-playing .fl-vplayer__btn:focus-visible {
  opacity: 1;
}
.fl-vplayer.is-started .fl-vplayer__shade,
.fl-vplayer.is-started .fl-vplayer__meta {
  opacity: 0;
}
.fl-vplayer__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.fl-vplayer.is-started .fl-vplayer__progress {
  opacity: 1;
}
.fl-vplayer__progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4a8db7, #22a6b3);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: reduce) {
  .fl-vplayer__btn::before,
  .fl-site.fl-js .fl-hproblem__step.fl-in::after,
  .fl-site.fl-js .fl-hproblem__step.fl-in .fl-hproblem__icon::after {
    animation: none;
  }
}

/* ---- Founders ---- */
.fl-founders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.fl-founders > li {
  display: flex;
}
.fl-founder {
  flex: 1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-radius: calc(var(--fl-radius-lg) - 4px);
}
.fl-founder__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fl-ink);
}
.fl-founder__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fl-founder__name {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.fl-founder__role {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--fl-accent);
}
.fl-founder__creds {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--fl-muted);
}
.fl-founder__text {
  margin: 8px 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fl-ink-2);
}
.fl-founder__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--fl-line-strong);
  font-size: 14px;
  font-weight: 500;
  color: var(--fl-ink);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.fl-founder__link:hover,
.fl-founder__link:focus-visible {
  border-color: #0a66c2;
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.06);
}
@media (min-width: 900px) {
  .fl-founders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .fl-founder {
    padding: 32px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 24px;
  }
  .fl-founder__avatar {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }
}
@media (max-width: 599px) {
  .fl-founder {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
