/* ==========================================================================
   Futurelink "fl-" blocks: shared styles (November 2026)

   Plain CSS, loaded as it is (no Tailwind or Mix build). Everything is built on
   the --fl-* tokens from app.css so the new blocks match the 2026 restyle.
   Block-specific rules live in each block's own .css file.
   ========================================================================== */

/* ---- Section shell ------------------------------------------------------- */
.fl-block {
  position: relative;
  padding: clamp(56px, 7.5vw, 104px) 0;
  font-family: "Karla", sans-serif;
  color: var(--fl-ink);
}

.fl-bg-cream {
  background: var(--fl-cream);
}

.fl-bg-white {
  background: #fff;
}

.fl-bg-purple {
  background: radial-gradient(1200px 520px at 85% -10%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(900px 480px at 0% 110%, rgba(228, 99, 52, 0.16), transparent 60%),
    var(--fl-purple-950);
  color: rgba(255, 255, 255, 0.86);
}

/* Two neighbours on the same background read as one section. */
.fl-bg-cream + .fl-bg-cream,
.fl-bg-white + .fl-bg-white {
  padding-top: 0;
}

/* ---- Block header -------------------------------------------------------- */
.fl-head {
  max-width: 820px;
  margin: 0 0 clamp(32px, 4vw, 52px);
}

.fl-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.fl-head .fl-eyebrow {
  margin: 0 0 14px;
  line-height: 1.4;
}

.fl-head__title {
  margin: 0;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.1;
  text-wrap: balance;
}

.fl-head__sub {
  margin: 14px 0 0;
  font-family: "Plus Jakarta Sans", "Karla", sans-serif;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--fl-purple-500);
  text-wrap: balance;
}

.fl-head__intro {
  margin-top: 20px;
}

.fl-bg-purple .fl-head__title,
.fl-bg-purple h3,
.fl-bg-purple h4 {
  color: #fff;
}

.fl-bg-purple .fl-head__sub {
  color: var(--fl-orange-400);
}

.fl-bg-purple .fl-eyebrow {
  color: var(--fl-purple-300);
}

/* ---- Prose --------------------------------------------------------------- */
.fl-prose p {
  margin: 0 0 1em;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: inherit;
}

.fl-prose p:last-child {
  margin-bottom: 0;
}

.fl-prose strong {
  font-weight: 700;
  color: var(--fl-purple-950);
}

.fl-bg-purple .fl-prose strong {
  color: #fff;
}

.fl-prose a {
  color: var(--fl-purple-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fl-outro {
  max-width: 820px;
  margin-top: clamp(24px, 3vw, 36px);
}

.fl-outro--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---- Lists --------------------------------------------------------------- */
.fl-list-label {
  margin: 0 0 16px;
  font-family: "Plus Jakarta Sans", "Karla", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--fl-purple-950);
}

.fl-list-label--second {
  margin-top: 28px;
}

.fl-bg-purple .fl-list-label {
  color: #fff;
}

.fl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 28px;
  text-align: left;
}

.fl-list li {
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
}

/* Ticks */
.fl-list--ticks li {
  padding-left: 30px;
}

.fl-list--ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
}

.fl-list--ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.2em + 5px);
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--fl-purple-500);
  border-bottom: 2px solid var(--fl-purple-500);
  transform: rotate(-45deg);
}

.fl-bg-purple .fl-list--ticks li::before,
.fl-cta--gradient .fl-list--ticks li::before {
  background: rgba(240, 126, 82, 0.2);
}

.fl-bg-purple .fl-list--ticks li::after,
.fl-cta--gradient .fl-list--ticks li::after {
  border-color: var(--fl-orange-400);
}

/* Chips */
.fl-list--chips {
  gap: 10px;
}

.fl-list--chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--fl-border);
  border-radius: 14px;
  background: #fff;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(24, 0, 45, 0.03);
}

.fl-bg-white .fl-list--chips li {
  background: var(--fl-cream);
}

.fl-list--chips li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fl-grad-soft);
}

.fl-bg-purple .fl-list--chips li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

/* On phones, chips wrap like tags so long lists stay short. */
@media (max-width: 639px) {
  .fl-list--chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .fl-list--chips li {
    padding: 9px 14px;
    border-radius: 9999px;
    font-size: 0.94rem;
    gap: 8px;
  }
  .fl-flowline li {
    white-space: normal;
  }
}

@media (min-width: 640px) {
  .fl-list--cols-2,
  .fl-list--cols-3,
  .fl-list--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fl-list--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fl-list--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- Pull-quote ---------------------------------------------------------- */
.fl-pullquote {
  position: relative;
  margin: 28px 0 0;
  padding: 4px 0 4px 22px;
  max-width: 760px;
  font-family: "Plus Jakarta Sans", "Karla", sans-serif;
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fl-purple-950);
  text-wrap: balance;
}

.fl-pullquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--fl-grad-soft);
}

.fl-pullquote--center {
  margin-left: auto;
  margin-right: auto;
  padding: 22px 0 0;
  text-align: center;
}

.fl-pullquote--center::before {
  left: 50%;
  top: 0;
  bottom: auto;
  width: 56px;
  height: 4px;
  transform: translateX(-50%);
}

.fl-bg-purple .fl-pullquote {
  color: #fff;
}

/* ---- Buttons and links --------------------------------------------------- */
.fl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.fl-buttons--center {
  justify-content: center;
}

.fl-bg-purple .button-styling-ghost,
.fl-cta--gradient .button-styling-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.fl-bg-purple .button-styling-ghost:hover,
.fl-cta--gradient .button-styling-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--fl-purple-950);
}

.fl-bg-purple .button-styling-purple {
  background: #fff;
  color: var(--fl-purple-950);
}

.fl-bg-purple .button-styling-purple:hover {
  background: var(--fl-cream-200);
  color: var(--fl-purple-950);
}

.fl-textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Plus Jakarta Sans", "Karla", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fl-purple-500);
}

.fl-textlink span {
  transition: transform 200ms ease;
}

.fl-textlink:hover {
  color: var(--fl-orange-500);
}

.fl-textlink:hover span {
  transform: translateX(4px);
}

.fl-bg-purple .fl-textlink {
  color: var(--fl-orange-400);
}

.fl-bg-purple .fl-textlink:hover {
  color: #fff;
}

.fl-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", "Karla", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fl-ink-soft);
}

.fl-backlink:hover {
  color: var(--fl-orange-500);
}

.fl-backlink--light {
  color: rgba(255, 255, 255, 0.75);
}

.fl-backlink--light:hover {
  color: #fff;
}

/* ---- Flow line (connected pills) ---------------------------------------- */
.fl-flowline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
}

.fl-flowline--center {
  justify-content: center;
  margin-top: 28px;
}

.fl-flowline li {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid var(--fl-border);
  background: #fff;
  font-family: "Plus Jakarta Sans", "Karla", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fl-purple-950);
  list-style: none;
}

.fl-flowline li {
  white-space: nowrap;
}

.fl-flowline li:not(:last-child) {
  margin-right: 36px;
  position: relative;
}

/* The arrow between two stages */
.fl-flowline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--fl-grad-soft);
}

.fl-flowline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(100% + 21px);
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--fl-orange-500);
  border-right: 2px solid var(--fl-orange-500);
  transform: translateY(-50%) rotate(45deg);
}

.fl-flowline li:last-child {
  border-color: transparent;
  background: var(--fl-grad-soft);
  color: #fff;
}

.fl-bg-purple .fl-flowline li {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.fl-bg-purple .fl-flowline li:last-child {
  background: var(--fl-grad-soft);
  border-color: transparent;
}

@media (max-width: 639px) {
  .fl-flowline,
  .fl-flowline--center {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .fl-flowline li {
    justify-content: center;
    text-align: center;
  }
  .fl-flowline li:not(:last-child) {
    margin-right: 0;
    margin-bottom: 30px;
  }
  .fl-flowline li:not(:last-child)::after {
    left: 50%;
    top: calc(100% + 5px);
    width: 2px;
    height: 18px;
    transform: translateX(-50%);
  }
  .fl-flowline li:not(:last-child)::before {
    left: 50%;
    top: calc(100% + 15px);
    transform: translateX(-50%) rotate(135deg);
  }
}

/* ---- Cards on a purple background --------------------------------------- */
.fl-bg-purple .fl-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.84);
}

/* ---- "Meet the rest of the team" row ------------------------------------ */
.fl-teamrow {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--fl-border);
}

.fl-teamrow__title {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
}

.fl-teamrow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .fl-teamrow__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fl-teamrow__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fl-teamrow__card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  background: #fff;
  box-shadow: var(--fl-shadow-sm);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.fl-teamrow__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fl-shadow-lg);
}

.fl-teamrow__photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--fl-cream-200);
}

.fl-teamrow__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.fl-teamrow__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fl-teamrow__name {
  font-family: "Plus Jakarta Sans", "Karla", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fl-purple-950);
}

.fl-teamrow__role {
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fl-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .fl-teamrow__card,
  .fl-textlink span {
    transition: none;
  }
  .fl-teamrow__card:hover {
    transform: none;
  }
}
