/* Solution: Agencies page */

.page > [data-rebuild-section] + [data-rebuild-section] { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.sa-hero { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sa-hero .tag { margin-bottom: 24px; }
.sa-hero__title { max-width: 960px; padding: 0 20px; }
.sa-hero__title .ink { display: block; }
.sa-hero__lead { max-width: 785px; margin-top: 16px; padding: 0 20px; }
.sa-hero__cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sa-hero__note { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }
/* On tablet and phone the product shot and logo ticker sit inside the hero */
.sa-hero__media { display: none; }
.title-wrapper > .tag { align-self: flex-start; justify-self: start; width: fit-content; }
.sa-hero__shot { width: 100%; height: auto; aspect-ratio: 1400 / 747; object-fit: cover; }
.sa-hero__media .sa-logos { border-top: 1px solid var(--line); }

/* ---------- Product shot ---------- */
.sa-shot { overflow: hidden; }
.sa-shot img { width: 100%; height: auto; aspect-ratio: 1400 / 747; object-fit: cover; }

/* ---------- Logo ticker ---------- */
.sa-logos { display: flex; align-items: center; }
.sa-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);
}
.sa-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);
}
.sa-logos__marquee { display: flex; align-items: center; gap: 96px; will-change: transform; }
.sa-logos__marquee img { flex: none; height: auto; object-fit: cover; }

/* ---------- Mission (sticky statement) ---------- */
.sa-mission { height: 1800px; }
.sa-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;
}
.sa-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);
}
.sa-mission__para { display: block; }
.sa-mission.is-scrubbed .sa-mission__run {
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, var(--ink) var(--fill, 0%), #cfcfcf var(--fill, 0%));
  -webkit-background-clip: text; background-clip: text;
  -webkit-box-decoration-break: slice; box-decoration-break: slice;
}

/* ---------- Comparison ---------- */
.sa-compare .title-wrapper__row .t-h2 { max-width: 640px; }
.sa-compare .title-wrapper__row .t-lead { max-width: 640px; }
.sa-table-wrap { border-top: 1px solid var(--line); overflow-x: auto; }
.sa-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sa-table th, .sa-table td {
  height: 64px; padding: 20px 24px; background: var(--white);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  font-size: 16px; line-height: 25px; letter-spacing: -0.16px; font-weight: 500; color: var(--ink); text-align: center;
}
.sa-table thead th { border-top: 0; }
.sa-table th:first-child { border-left: 0; text-align: left; }
.sa-table__features { color: var(--muted) !important; }
.sa-table td img { display: inline-block; vertical-align: middle; }
.sa-table td.sa-table__yes { background: #fdfdfd; }
.sa-table__brand { position: relative; overflow: hidden; }
.sa-table__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sa-table__logo { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink-strong); }
.sa-table__logo img { width: 20px; height: 20px; }

/* ---------- How Manyreach solves it ---------- */
.sa-solves .title-wrapper__row .t-h2 { max-width: 450px; }

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

/* ---------- Testimonials ---------- */
.sa-testimonials__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.sa-people { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sa-people img { width: 102px; height: 30px; object-fit: cover; }
.sa-people p { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }
.sa-testimonials .title-wrapper__row .t-lead { max-width: 450px; }
.sa-slider { border-top: 1px solid var(--line-2); }
.sa-slide { display: grid; grid-template-columns: minmax(0, 1fr) 629px; }
.sa-slide__content { display: flex; flex-direction: column; border-right: 1px solid var(--line-2); }
.sa-slide__quote-wrap { padding: 34px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.sa-slide__mark { font-size: 48px; line-height: 54px; font-weight: 500; color: var(--ink-60); height: 40px; }
.sa-slide__quote { font-size: 32px; line-height: 43px; letter-spacing: -0.64px; font-weight: 500; color: var(--ink); max-width: 700px; }
.sa-slide__person { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.sa-slide__person img { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; }
.sa-slide__name { font-size: 16px; line-height: 18px; font-weight: 500; color: var(--ink); }
.sa-slide__role { font-size: 14px; line-height: 15px; font-weight: 400; color: var(--muted); }
.sa-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); }
.sa-slide__stats li { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 1px solid var(--line-2); }
.sa-slide__stats li:first-child { padding-left: 0; border-left: 0; }
.sa-slide__num { font-size: 36px; line-height: 36px; letter-spacing: -0.72px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.sa-slide__label { font-size: 16px; line-height: 18px; font-weight: 400; color: var(--ink-60); }
.sa-slide__link { display: flex; align-items: center; gap: 12px; padding: 28px 34px; font-size: 14px; line-height: 15px; font-weight: 500; color: var(--ink); }
.sa-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); }
.sa-slide__arrow img { width: 16px; height: 16px; }
.sa-slide__link:hover .sa-slide__arrow { background: rgba(0, 0, 0, 0.02); }
.sa-slide__visual { position: relative; aspect-ratio: 1 / 1; background: #dde3ea; overflow: hidden; }
.sa-slide__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.sa-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)); }
.sa-slider__controls { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-top: 1px solid var(--line-2); }
.sa-slider__dots { display: flex; gap: 6px; align-items: center; }
.sa-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); }
.sa-slider__dot.is-active { width: 18px; background: var(--ink); }
.sa-slider__buttons { display: flex; gap: 8px; }
.sa-slider .icon-box:hover { background: rgba(0, 0, 0, 0.02); }

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

/* ---------- FAQ ---------- */
.sa-faq { display: grid; grid-template-columns: 520px minmax(0, 1fr); }
.sa-faq__intro { padding: 80px 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sa-faq__title { max-width: 400px; color: var(--ink-60); }
.sa-faq__title .ink { display: block; }
.sa-faq__list { border-left: 1px solid var(--line); }
.sa-faq__item { border-bottom: 1px solid var(--line); }
.sa-faq__item:last-child { border-bottom: 0; }
.sa-faq__item h5 { font: inherit; }
.sa-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);
}
.sa-faq__q:hover { background: var(--surface); }
.sa-faq__icon { width: 14px; height: 14px; flex: none; transition: transform 0.3s var(--ease); }
.sa-faq__q[aria-expanded="true"] .sa-faq__icon { transform: rotate(45deg); }
.sa-faq__a { padding: 0 32px 32px; max-width: 760px; font-size: 16px; line-height: 25px; font-weight: 400; color: var(--ink-60); }

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

/* ================= Tablet ================= */
@media (max-width: 1199px) {
  .sa-hero { padding: 124px 20px 0; }
  .sa-hero__lead { max-width: 900px; }
  .sa-hero__media { display: block; align-self: stretch; margin: 60px -20px 0; text-align: left; }
  .sa-shot, section.sa-logos { display: none; }

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

  .sa-feature__text .t-h3 { font-size: 24px; line-height: 31px; }

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

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

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

/* Tablet only */
@media (min-width: 810px) and (max-width: 1199px) {
  .sa-solves { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 60px 20px; }
  .sa-solves .title-wrapper__row { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .sa-solves .title-wrapper__row .t-h2 { max-width: 400px; }
  .sa-solves .t-h2 .ink { display: inline; }
  .sa-solves .t-lead { max-width: 400px; }

  .sa-usecases .title-wrapper { padding: 20px 20px 40px; }
  .sa-usecases .title-wrapper__row .t-lead { max-width: 400px; }
  .sa-usecases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-usecase { min-height: 230px; padding: 20px; gap: 48px; }
  .sa-usecase:nth-child(2) { border-right: 0; }
  .sa-usecase:nth-child(3) { border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .sa-usecase .t-title { font-size: 20px; line-height: 26px; }
}

/* ================= Phone ================= */
@media (max-width: 809px) {
  .sa-hero { padding: 128px 8px 0; }
  .sa-hero .tag { margin-bottom: 28px; font-size: 12px; line-height: 12px; }
  .sa-hero__media { margin: 60px -8px 0; }
  .sa-hero__title { padding: 0; font-size: 40px; line-height: 44px; letter-spacing: -1.6px; }
  .sa-hero__lead { padding: 0; margin-top: 20px; }
  .sa-hero__note { font-size: 12px; line-height: 18px; letter-spacing: -0.2px; }
  .sa-hero__cta { width: 100%; }
  .sa-hero__cta .btn { width: 100%; max-width: 298px; font-size: 16px; }

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

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

  .sa-table { width: 760px; table-layout: fixed; }
  .sa-table th:first-child { width: 300px; }
  .sa-table th, .sa-table td { font-size: 16px; }

  .sa-features { grid-template-columns: 1fr; }
  .sa-feature:nth-child(odd) { border-right: 0; }
  .sa-feature + .sa-feature { border-top: 1px solid var(--line); }
  .sa-feature img { aspect-ratio: 356 / 224; }
  .sa-feature__text { padding: 24px 20px 20px; gap: 8px; }
  .sa-feature__text .t-h3 { font-size: 20px; line-height: 29px; letter-spacing: -0.4px; }
  .sa-feature__text p { font-size: 14px; line-height: 19px; max-width: 280px; }

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  .sa-mission.is-scrubbed .sa-mission__run { color: var(--ink); -webkit-text-fill-color: currentColor; background: none; }
}
