/* Salesforge rebuild: the three Solutions pages (Agencies, Sales, Growth). Reuses site.css and home.css. */

/* faint squares behind the top of the page */
main { position: relative; }
.sol-glare {
  position: absolute; top: 0; left: 0; right: 0; height: 100vh; z-index: -1; overflow: hidden;
  display: flex; justify-content: center; pointer-events: none;
}
.sol-glare__wrap { position: relative; width: 50%; min-width: 50rem; max-width: 60rem; }
.sol-glare__wrap img { width: 100%; height: auto; }
.sol-glare--10 img { opacity: .1; }
.sol-glare--30 img { opacity: .3; }
@media (max-width: 767px) { .sol-glare__wrap { width: 100%; min-width: 0; max-width: none; } }
@media (max-width: 479px) { .sol-glare__wrap { width: 200%; } }

/* small purple label above headings */
.tag {
  display: inline-block; padding: 2px 10px 4px; border-radius: 9999px;
  background: var(--violet-100); color: var(--violet);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px; line-height: 1.5; font-weight: 500; text-align: center;
}
@media (max-width: 767px) { .tag { padding: 2px 8px; } }
@media (max-width: 479px) { .sol-hero__inner, .sol-head__inner { gap: 16px; } }
.h2 { font-size: 48px; line-height: 1.3; font-weight: 600; letter-spacing: -.8px; color: var(--ink); }
@media (max-width: 991px) { .h2 { font-size: 2.5rem; } }
@media (max-width: 767px) { .h2 { font-size: 2rem; } }
.lead18 { font-size: 18px; line-height: 1.4; }

/* ---------------------------------------------------------------- top section */
.sol-hero { padding: 56px 0 80px; }
.sol-hero__inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sol-hero__heading { display: flex; flex-direction: column; align-items: center; margin-bottom: 12px; }
.sol-hero__heading .h2 { margin-top: 8px; }

/* ---------------------------------------------------------------- heading sections */
.sol-head { padding: 40px 0 56px; }
.sol-head__inner { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sol-head__heading { display: flex; flex-direction: column; align-items: center; margin-bottom: 12px; }
.sol-head__heading .h3 { margin-top: 12px; }
.sol-head__text { margin-top: 4px; color: var(--ink); }

/* ---------------------------------------------------------------- logo strip with four logos */
.logos__grid--4 { grid-template-columns: repeat(4, 1fr); }
.logo__img--salescap { width: 40%; }
.logo__img--netnew-s { width: 30%; }
.logo__img--lfg-s { width: 30%; }
.logo__img--lss { width: 39%; }
.logo__img--akool-s { width: 46%; }
.logo__img--channel-s { width: 38%; }
.logo__img--unitesync-s { width: 46%; }
.logo__img--vai-s { width: 54%; }
@media (max-width: 991px) {
  .logos__grid--4 { grid-template-columns: repeat(4, 1fr); height: 7rem; }
  .logos__grid--4 .logo:nth-child(5) { border-left-width: 1px; }
}
@media (max-width: 479px) { .logos__grid--4 { grid-template-columns: 1fr 1fr; height: 10rem; } }

/* ---------------------------------------------------------------- four cells */
.cells--4 { grid-template-columns: repeat(4, 1fr); }
.cells--4 .cell { gap: 100px; }
/* Four columns stop fitting their longest words below about 640 px, so between 480 and 640 they sit two by two
   instead of spilling past the window (Frank's layouts at 767 and 390 are unchanged). */
@media (min-width: 480px) and (max-width: 640px) {
  .cells--4 { grid-template-columns: 1fr 1fr; }
  .cells--4 .cell:nth-child(-n+2) { border-bottom: 1px solid var(--gray-200); }
}
@media (max-width: 479px) {
  .cells--4 { grid-template-columns: 1fr; }
  .cells--4 .cell:nth-child(even) { border-bottom-width: 0; }   /* as on Frank's page */
}

/* ---------------------------------------------------------------- good fit / not-so-good fit */
.fit {
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50) url("../img/bg-line-shape.svg") 0 0;
}
.fit__frame {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-top: 150px;
  background: var(--white); border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200);
}
.fit__graph { position: absolute; top: 32px; left: 0; right: 0; height: 96px; }
.fit__graph img { width: 100%; height: auto; }
.fit__col { padding: 0 15% 0 5%; }
.fit__col--left { padding: 0 5% 0 15%; }
.fit__badge-row { display: flex; justify-content: center; }
.fit__badge {
  padding: 8px 16px; border-radius: 9999px; background: var(--violet); color: var(--white);
  font-size: 18px; line-height: 1.4; font-weight: 500;
}
.fit__badge--light { background: var(--violet-100); color: var(--violet); }
.fit__list { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; padding-bottom: 100px; }
.fit__item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px;
  padding: 6px 6px 6px 16px; border-radius: 12px; background: var(--gray-50);
  font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink);
}
.fit__icon {
  flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
.fit__icon img { width: 24px; height: 24px; }
@media (max-width: 991px) { .fit__col:not(.fit__col--left) { padding-right: 10%; } .fit__col--left { padding-left: 10%; } }
@media (max-width: 479px) { .fit .wrap { display: none; } }

/* ---------------------------------------------------------------- Forge Expert program */
.expert { padding: 100px 0 80px; }
.expert__grid { display: grid; grid-template-columns: .5fr 1fr; gap: 100px; align-items: center; }
.expert__left { position: sticky; top: 150px; align-self: start; }
.expert__left .tag { margin-bottom: 8px; }
.expert__left .h3 { margin-bottom: 20px; }
.expert__right { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.h4--600 { font-weight: 600; }
.expert__intro { margin-bottom: 24px; }
.expert__item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.expert__dot {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--violet); border: 7px solid var(--violet-100);
}
.expert__item p { color: var(--ink); }
.expert__item b { font-weight: 600; }
.expert__benefits { margin-top: 32px; }
@media (max-width: 991px) { .expert__grid { gap: 44px; } }
@media (max-width: 767px) {
  .expert { padding-top: 64px; }
  .expert__grid { display: flex; flex-direction: column; gap: 48px; }
  .expert__left { position: static; text-align: center; margin: 0 auto; }
}
@media (max-width: 479px) {
  .expert__item { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
}

/* ---------------------------------------------------------------- customer reviews with a video */
.reviews { padding: 100px 0; }
.reviews__head { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.reviews__head .h3 { margin-top: 12px; }
.reviews__head .lead18 { margin-top: 12px; }
.reviews__row { display: flex; gap: 8%; margin-top: 80px; }
.reviews__media {
  position: relative; overflow: hidden; flex: none; width: 40%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;
  padding: 64px 40px; border-radius: 16px; background: var(--gray-50);
}
.reviews__media--violet { background: var(--violet-50); }
.reviews__squares { position: absolute; left: 0; right: 0; opacity: .2; pointer-events: none; }
.reviews__squares--top { top: 0; }
.reviews__squares--bottom { bottom: -8px; }
.reviews__squares img { width: 100%; height: auto; }
.reviews__video-box { position: relative; z-index: 1; width: 100%; }
.reviews__video-shadow {
  position: absolute; left: 10%; right: 10%; bottom: -16px; height: 64px; z-index: -1;
  border-radius: 9999px; background: #322c42; opacity: .5; filter: blur(16px);
}
.reviews__caption { position: relative; z-index: 1; margin-top: 24px; color: var(--ink); text-align: center; }
.reviews__media .stars { position: relative; z-index: 1; }
.reviews__quotes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10%; padding: 12px 0 24px; }
.reviews__quotes--one { display: block; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 80px;
  padding-top: 24px; border-top: 1px solid var(--gray-200); height: 100%;
}
.stars { width: 92px; height: 16px; }
.quote .stars { margin-bottom: 20px; }
.quote__text { font-size: 18px; line-height: 1.4; color: var(--ink); }
.quote__text--20 { font-size: 20px; }
.quote__person { display: flex; align-items: center; gap: 20px; }
.quote__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote__name { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.quote__role { font-size: 14px; line-height: 1.4; }
@media (max-width: 991px) { .reviews__quotes { display: flex; flex-direction: column; gap: 48px; } .quote { gap: 48px; } }
@media (max-width: 479px) {
  .reviews__row { flex-direction: column; gap: 48px; }
  .reviews__media { width: 100%; padding-left: 16px; padding-right: 16px; }
  .reviews__quotes, .quote { gap: 64px; }
}

/* ---------------------------------------------------------------- video: picture first, YouTube only after a click */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 100 / 56.17; padding: 0; overflow: hidden;   /* Frank's video frames are 56.17% tall */
  background: #000; cursor: pointer;
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 14px; background: rgba(33, 33, 33, .8); transition: background-color .2s;
}
.video__play::after {
  content: ""; position: absolute; left: 27px; top: 14px;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.video:hover .video__play, .video:focus-visible .video__play { background: #f00; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
