/* Solution: Freelancers */

/* ---------- Hero ---------- */
.fl-hero { padding: 60px 20px; display: flex; justify-content: center; text-align: center; }
.fl-hero__inner { display: flex; flex-direction: column; align-items: center; max-width: 960px; }
.fl-hero .tag { margin-bottom: 20px; }
.fl-hero__title { max-width: 920px; padding: 0 20px; }
.fl-hero__title .ink { display: block; }
.fl-hero__lead { max-width: 745px; margin-top: 16px; padding: 0 20px; }
.fl-hero__cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fl-hero__note { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }

/* ---------- Product shot ---------- */
.fl-shot { border-top: 1px solid var(--line); overflow: hidden; }
.fl-shot img { width: 100%; height: auto; aspect-ratio: 1400 / 747; object-fit: cover; }

/* ---------- Logo ticker ---------- */
.fl-logos { display: flex; align-items: center; border-top: 1px solid var(--line); }
.fl-logos__title {
  flex: none; width: 240px; padding: 48px; border-right: 1px solid var(--line);
  font-size: 16px; line-height: 21px; letter-spacing: -0.16px; font-weight: 400; color: var(--ink);
}
.fl-logos__track {
  flex: 1; min-width: 0; overflow: hidden; padding: 48px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fl-logos__marquee { display: flex; align-items: center; gap: 96px; will-change: transform; }
.fl-logos__marquee img { flex: none; height: auto; object-fit: contain; }

/* ---------- Mission (sticky statement) ---------- */
.fl-mission { height: 1800px; border-top: 1px solid var(--line); }
.fl-mission__sticky {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); min-height: 560px; max-height: 900px;
  display: flex; align-items: center; justify-content: center; padding: 64px;
}
.fl-mission__text {
  max-width: 600px; display: flex; flex-direction: column; gap: 38px;
  font-size: 32px; line-height: 38px; letter-spacing: -1px; font-weight: 500; color: var(--ink);
}
.fl-mission__para { display: block; }
.fl-mission.is-scrubbed .fl-mission__word { color: color-mix(in srgb, var(--ink) calc(var(--o, 0) * 100%), #cfcfcf); }

/* ---------- Comparison ---------- */
.fl-compare { border-top: 1px solid var(--line); }
.fl-compare .title-wrapper__row .t-h2 { max-width: 640px; }
.fl-compare .title-wrapper__row .t-lead { max-width: 640px; }
.fl-table-wrap { overflow-x: auto; border-top: 1px solid var(--line-2); scrollbar-width: none; }
.fl-table-wrap::-webkit-scrollbar { display: none; }
.fl-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fl-table th, .fl-table td {
  height: 64px; padding: 20px 24px; border: 1px solid var(--line-2);
  font-size: 16px; line-height: 25px; letter-spacing: -0.16px; font-weight: 500; color: var(--ink); text-align: center;
  background: var(--white);
}
.fl-table tr > :first-child { border-left: 0; text-align: left; }
.fl-table tr > :last-child { border-right: 0; }
.fl-table tbody tr:last-child > * { border-bottom: 0; }
.fl-table thead th { border-top: 0; }
.fl-table__feat-head { color: var(--muted) !important; font-weight: 500; }
.fl-table td img { margin: 0 auto; }
.fl-table td.fl-table__yes { background: #fdfdfd; }
.fl-table__brand { position: relative; overflow: hidden; }
.fl-table__brand-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-table__brand-name { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -0.5px; color: var(--ink); }
.fl-table__brand-name img { width: 20px; height: 20px; }

/* ---------- How it solves (heading) ---------- */
.fl-solves { border-top: 1px solid var(--line); }
.fl-solves .title-wrapper__row .t-h2 { max-width: 450px; }

/* ---------- Feature grid ---------- */
.fl-features { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.fl-feature { display: flex; flex-direction: column; background: var(--white); overflow: hidden; border-bottom: 1px solid var(--line); }
.fl-feature:nth-child(odd) { border-right: 1px solid var(--line); }
.fl-feature:nth-last-child(-n+2) { border-bottom: 0; }
.fl-feature img { width: 100%; height: auto; aspect-ratio: 700 / 438; object-fit: cover; }
.fl-feature__text { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.fl-feature__desc { max-width: 580px; font-size: 16px; line-height: 22px; font-weight: 400; color: var(--ink); }

/* ---------- Testimonials ---------- */
.fl-testimonials { border-top: 1px solid var(--line); }
.fl-testimonials__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.fl-people { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fl-people img { width: 102px; height: 30px; object-fit: cover; }
.fl-testimonials .title-wrapper__row .t-lead { max-width: 450px; }
.fl-slider { border-top: 1px solid var(--line-2); }
.fl-slide { display: grid; grid-template-columns: 1fr 629px; }
.fl-slide__content { display: flex; flex-direction: column; border-right: 1px solid var(--line-2); }
.fl-slide__quote-wrap { padding: 34px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.fl-slide__mark { font-size: 48px; line-height: 54px; font-weight: 500; color: var(--ink-60); height: 40px; }
.fl-slide__quote { font-size: 32px; line-height: 43px; letter-spacing: -0.64px; font-weight: 500; color: var(--ink); max-width: 700px; }
.fl-slide__person { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.fl-slide__person img { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; }
.fl-slide__name { font-size: 16px; line-height: 18px; font-weight: 500; color: var(--ink); }
.fl-slide__role { font-size: 14px; line-height: 15px; font-weight: 400; color: var(--muted); }
.fl-slide__stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 34px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.fl-slide__stats li { display: flex; flex-direction: column; gap: 4px; padding-left: 24px; border-left: 1px solid var(--line-2); }
.fl-slide__stats li:first-child { padding-left: 0; border-left: 0; }
.fl-slide__num { font-size: 36px; line-height: 36px; letter-spacing: -0.72px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.fl-slide__label { font-size: 16px; line-height: 18px; font-weight: 400; color: var(--ink-60); }
.fl-slide__link { display: flex; align-items: center; gap: 12px; padding: 28px 34px; font-size: 14px; line-height: 15px; font-weight: 500; color: var(--ink); }
.fl-slide__arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--white); border: 1px solid var(--line-2); transition: background-color 0.2s var(--ease); }
.fl-slide__arrow img { width: 16px; height: 16px; }
.fl-slide__link:hover .fl-slide__arrow { background: var(--surface); }
.fl-slide__visual { position: relative; aspect-ratio: 1 / 1; background: #dde3ea; overflow: hidden; }
.fl-slide__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.fl-slide__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(49, 75, 92, 0.22), rgba(140, 88, 163, 0.12), rgba(217, 138, 84, 0.1)); }
.fl-slider__controls { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-top: 1px solid var(--line-2); }
.fl-slider__dots { display: flex; gap: 6px; align-items: center; }
.fl-slider__dot { width: 4px; height: 4px; border-radius: 999px; background: var(--ink-60); transition: width 0.3s var(--ease), background-color 0.3s var(--ease); }
.fl-slider__dot.is-active { width: 18px; background: var(--ink); }
.fl-slider__buttons { display: flex; gap: 8px; }
.fl-slider__buttons .icon-box:hover { background: rgba(0, 0, 0, 0.02); }

/* ---------- Use cases ---------- */
.fl-usecases { border-top: 1px solid var(--line); }
.fl-usecases__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fl-usecase { padding: 32px; min-height: 284px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: 1px solid var(--line); background: var(--white); transition: background-color 0.25s var(--ease); }
.fl-usecase:last-child { border-right: 0; }
.fl-usecase:hover { background: var(--surface); }
.fl-usecase__top { display: flex; justify-content: space-between; align-items: center; }
.fl-usecase__arrow img { width: 28px; height: 28px; }
.fl-usecase__text { display: flex; flex-direction: column; gap: 11px; }
.fl-usecase__text .t-small { display: block; }
.fl-usecase__text a:hover { color: var(--ink); }

/* ---------- FAQ ---------- */
.fl-faq { display: grid; grid-template-columns: 520px 1fr; border-top: 1px solid var(--line); }
.fl-faq__intro { padding: 80px 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fl-faq__title { max-width: 400px; }
.fl-faq__title .ink { display: block; }
.fl-faq__list { border-left: 1px solid var(--line); }
.fl-faq__item { border-bottom: 1px solid var(--line); }
.fl-faq__item:last-child { border-bottom: 0; }
.fl-faq__item h5 { font: inherit; }
.fl-faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; text-align: left;
  font-size: 18px; line-height: 29px; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.fl-faq__q:hover { background: var(--surface); }
.fl-faq__icon { width: 14px; height: 14px; flex: none; transition: transform 0.3s var(--ease); }
.fl-faq__q[aria-expanded="true"] .fl-faq__icon { transform: rotate(45deg); }
.fl-faq__a { padding: 0 32px 32px; max-width: 760px; font-size: 16px; line-height: 25px; font-weight: 400; color: var(--ink-60); }

/* ---------- Banner ---------- */
.fl-banner { position: relative; overflow: hidden; padding: 120px 60px; display: flex; justify-content: center; border-top: 1px solid var(--line); }
.fl-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.fl-banner__inner { position: relative; max-width: 500px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fl-banner__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; font-weight: 500; color: var(--ink); }
.fl-banner__text { margin-top: 12px; font-size: 16px; line-height: 21.7px; font-weight: 400; color: var(--ink); }
.fl-banner .btn { margin-top: 32px; }

/* Hero media only exists below desktop */
.fl-hero__media { display: none; }
.fl-hero__title { text-wrap: wrap; }

/* ================= Tablet ================= */
@media (max-width: 1199px) {
  .fl-hero { padding: 52px 20px 0; flex-direction: column; align-items: center; }
  .fl-hero .tag { margin-bottom: 26px; }
  .fl-hero__lead { max-width: 880px; padding: 0; }
  .fl-hero__media { display: block; align-self: stretch; margin: 60px -20px 0; }
  .fl-hero__shot { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 747; object-fit: cover; border-top: 1px solid var(--line); }
  [data-rebuild-section="3"], .fl-logos--main { display: none; }
}

/* Tablet only: the feature grid sits inside the "how it solves" section */
@media (min-width: 810px) and (max-width: 1199px) {
  .fl-solves { padding: 20px 20px 0; }
  .fl-solves .ink { display: inline; }
  .fl-solves .title-wrapper__row { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 38px; }
  .fl-solves .title-wrapper__row .t-h2 { max-width: 370px; }
  .fl-solves .title-wrapper__row .t-lead { max-width: 380px; }
  .fl-features .fl-feature img { aspect-ratio: 480 / 300; }
  .fl-features .fl-feature__text { padding: 28px 27px 26px; gap: 14px; }
  .fl-features .t-h3 { font-size: 24px; line-height: 31px; }
  .fl-features .fl-feature__desc { max-width: 385px; }

  .fl-usecases .title-wrapper { padding-left: 20px; padding-right: 20px; }
  .fl-usecases .title-wrapper__row .t-lead { max-width: 400px; }
  .fl-usecases__grid { grid-template-columns: repeat(2, 1fr); }
  .fl-usecase { min-height: 231px; padding: 20px 20px 50px; justify-content: flex-start; gap: 40px; border-bottom: 1px solid var(--line); }
  .fl-usecase:nth-child(2n), .fl-usecase:last-child { border-right: 0; }
  .fl-usecase .t-title { font-size: 20px; line-height: 24px; }
  .fl-usecase__text { gap: 12px; }
}

@media (max-width: 1199px) {

  .fl-logos__title { width: 194px; padding: 32px; }
  .fl-logos__track { padding: 40px 0; }

  .fl-compare .title-wrapper__row .t-h2 { max-width: 400px; }
  .fl-compare .title-wrapper__row .t-lead { max-width: 360px; }
  .fl-solves .title-wrapper__row .t-h2 { max-width: 400px; }
  .fl-table th, .fl-table td { height: 62px; }

  .fl-feature__desc { font-size: 16px; line-height: 22px; }

  .fl-slide { grid-template-columns: 1fr; }
  .fl-slide__visual { order: -1; }
  .fl-slide__content { border-right: 0; }
  .fl-slide__quote { font-size: 18px; line-height: 24px; letter-spacing: -0.2px; }
  .fl-slide__name { font-size: 13px; line-height: 14px; }
  .fl-slide__role { font-size: 11px; line-height: 12px; }
  .fl-slide__label { font-size: 12px; line-height: 13px; }

  .fl-faq { grid-template-columns: 1fr; }
  .fl-faq__intro { padding: 40px 20px; }
  .fl-faq__list { border-left: 0; border-top: 1px solid var(--line); }
  .fl-faq__q { padding: 19px 20px; }
  .fl-faq__a { padding: 0 20px 20px; }

  .fl-banner__title { font-size: 36px; line-height: 40px; letter-spacing: -1.4px; }
}

/* ================= Phone ================= */
@media (max-width: 809px) {
  .fl-hero { padding: 52px 12px 0; }
  .fl-hero .tag { margin-bottom: 28px; font-size: 12px; line-height: 12px; }
  .fl-hero__title { padding: 0; font-size: 40px; line-height: 44px; letter-spacing: -2px; }
  .fl-hero__media { margin: 60px -12px 0; }
  .fl-hero__title { letter-spacing: -1.6px; }
  .fl-hero__media .fl-logos__title { padding: 56px 20px; border-bottom: 1px solid var(--line); }
  .fl-hero__media .fl-logos__track { padding: 20px 0 28px; }
  .fl-hero__lead { padding: 0 12px; margin-top: 20px; font-size: 14px; line-height: 19px; }
  .fl-hero__note { font-size: 12px; line-height: 18px; letter-spacing: -0.2px; }
  .fl-hero__cta { width: 100%; margin-top: 32px; }
  .fl-hero__btn { width: 100%; max-width: 298px; font-size: 16px; }

  .fl-logos { flex-direction: column; align-items: stretch; }
  .fl-logos__title { width: auto; padding: 32px 20px 0; border-right: 0; text-align: center; }
  .fl-logos__track { padding: 24px 0 32px; }
  .fl-logos__marquee { gap: 56px; }

  .fl-mission { height: 1688px; }
  .fl-mission__sticky { padding: 40px 20px; }
  .fl-mission__text { font-size: 28px; line-height: 34px; letter-spacing: -0.8px; gap: 34px; }

  .fl-compare .title-wrapper__row .t-h2,
  .fl-compare .title-wrapper__row .t-lead,
  .fl-solves .title-wrapper__row .t-h2 { max-width: none; }
  .fl-table { width: 900px; }
  .fl-table th, .fl-table td { height: 64px; }
  .fl-table th:first-child { width: 300px; }

  .fl-features { grid-template-columns: 1fr; }
  .fl-feature, .fl-feature:nth-child(odd) { border-right: 0; }
  .fl-feature:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .fl-feature img { aspect-ratio: 356 / 223; }
  .fl-feature__text { padding: 24px 20px 28px; gap: 8px; }
  .fl-feature .t-h3 { font-size: 20px; line-height: 29px; letter-spacing: -0.6px; }
  .fl-feature__desc { font-size: 14px; line-height: 19px; color: var(--ink-60); max-width: 290px; }

  .fl-testimonials__top { align-items: flex-end; }
  .fl-slide__quote-wrap { padding: 24px; }
  .fl-slide__stats { grid-template-columns: 1fr; padding: 0; }
  .fl-slide__stats li { padding: 24px; border-left: 0; border-top: 1px solid var(--line-2); }
  .fl-slide__stats li:first-child { padding-left: 24px; border-top: 0; }
  .fl-slide__link { padding: 24px; font-size: 16px; }

  .fl-usecases__grid { grid-template-columns: 1fr; }
  .fl-usecase { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding: 20px 20px 24px; gap: 36px; }
  .fl-usecase:last-child { border-bottom: 0; }

  .fl-faq__intro { padding: 32px 20px 40px; }
  .fl-faq__q { padding: 20px; font-size: 16px; line-height: 19px; }
  .fl-faq__a { padding: 0 20px 20px; font-size: 14px; line-height: 21px; }

  .fl-banner { padding: 36px 20px 40px; }
  .fl-banner__title { font-size: 36px; line-height: 39px; }
  .fl-banner__text { margin-top: 16px; }
  .fl-banner .btn { margin-top: 28px; }
}
