/* SaaS page extras (loaded after ecommerce.css). Scoped under .ec-page. */

/* Team: "Extend your team / CTO as a Service" */
.ec-page .ec-team { background: linear-gradient(180deg, #fff 0%, #F6FBF8 100%); }
.ec-page .ec-team__grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 1200px; }
@media (min-width: 1200px) { .ec-page .ec-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.ec-page .ec-team__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; padding: 28px 24px;
  border: 1px solid #D5EFE3; border-radius: 20px; background: #fff;
  box-shadow: 0 4px 16px rgba(4, 21, 13, .05);
  scroll-margin-top: calc(var(--ec-header-h, 76px) + 16px);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width: 640px) { .ec-page .ec-team__card { flex-direction: row; align-items: stretch; gap: 8px; padding: 36px 28px; } }
.ec-page .ec-team__card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(4, 21, 13, .1); }
.ec-page .ec-team__card:focus { outline: none; }
.ec-page .ec-team__card:focus-visible { outline: 2px solid #00744A; outline-offset: 3px; }
.ec-page .ec-team__body { flex: 1 1 55%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ec-page .ec-team__ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: #00B26B; }
.ec-page .ec-team__ico img { display: block; width: 28px; height: 28px; }
.ec-page .ec-team__title { margin: 20px 0 0; font-size: 22px; line-height: 30px; font-weight: 700; color: #04150D; }
.ec-page .ec-team__text { margin: 8px 0 0; color: #5C6E65; }
.ec-page .ec-team__list { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.ec-page .ec-team__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 22px; color: #04150D; }
.ec-page .ec-team__list img { flex: none; box-sizing: content-box; width: 14px; height: 14px; padding: 5px; border-radius: 50%; background: #E6F7EF; }
.ec-page .ec-team__cta { display: inline-flex; text-wrap: balance; align-items: center; gap: 12px; margin-top: auto; font-weight: 600; color: #00744A; text-decoration: none; border-radius: 8px; }
.ec-page .ec-team__arrow { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #E6F7EF; transition: background .2s ease, transform .2s ease; }
.ec-page .ec-team__arrow img { display: block; width: 16px; height: 16px; transition: filter .2s ease; }
.ec-page .ec-team__cta:hover .ec-team__arrow, .ec-page .ec-team__cta:focus-visible .ec-team__arrow { background: #00B26B; transform: translateX(3px); }
.ec-page .ec-team__cta:hover .ec-team__arrow img, .ec-page .ec-team__cta:focus-visible .ec-team__arrow img { filter: brightness(0) invert(1); }
.ec-page .ec-team__cta:focus-visible { outline: 2px solid #00744A; outline-offset: 4px; }
.ec-page .ec-team__illus { display: block; align-self: center; flex: 0 1 42%; width: 100%; max-width: 220px; height: auto; margin: 0 auto; }
@media (min-width: 640px) { .ec-page .ec-team__illus { max-width: 260px; margin: 0; } }
/* one-line CTA under the illustration; a touch more room for the bullets */
@media (min-width: 640px) {
  .ec-page .ec-team__body { flex-basis: 60%; }
  .ec-page .ec-team__illus { flex-basis: 38%; }
  .ec-page .ec-team__cta { position: relative; z-index: 1; white-space: nowrap; text-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-page .ec-team__card, .ec-page .ec-team__arrow, .ec-page .ec-team__arrow img { transition: none; }
  .ec-page .ec-team__card:hover, .ec-page .ec-team__cta:hover .ec-team__arrow { transform: none; }
}

/* Why Provis: "Product First Thinking" icon (layers) */
.ec-page .ec11-mask--product { --ec11-i: url("../img/ecommerce/icons/ec-step-layers.svg"); }

/* Trusted: seven logos, the last one centred under the middle column; wordmark heights */
.ec-page .ec-logo--vault { --lh: 30px; }
.ec-page .ec-logo--olis { --lh: 28px; }
.ec-page .ec-logo--hauzd { --lh: 28px; }
.ec-page .ec-logo--emploi { --lh: 20px; }
.ec-page .ec-logo--acs { --lh: 44px; }
@media (min-width: 480px) {
  .ec-page .ec-logowall--7 .ec-logo-cell:nth-child(5), .ec-page .ec-logowall--7 .ec-logo-cell:nth-child(6) { border-bottom: 1px solid var(--ec-rule); }
  .ec-page .ec-logowall--7 .ec-logo-cell:last-child { grid-column: 2; border-right: 0; }
}

/* Partners: three badges in one row (two columns on phones: AWS full width, the other two share a row) */
.ec-page .ec13-partners--3 .ec13-pcard, .ec-page .ec13-partners--3 .ec13-pcard--google, .ec-page .ec13-partners--3 .ec13-pcard--microsoft { grid-column: span 2; padding-left: 40px; min-height: 148px; }
@media (max-width: 1279.98px) { .ec-page .ec13-partners--3 .ec13-pcard, .ec-page .ec13-partners--3 .ec13-pcard--google, .ec-page .ec13-partners--3 .ec13-pcard--microsoft { padding-left: 24px; } }
@media (max-width: 767.98px) {
  .ec-page .ec13-partners--3 .ec13-pcard, .ec-page .ec13-partners--3 .ec13-pcard--google, .ec-page .ec13-partners--3 .ec13-pcard--microsoft { grid-column: auto; min-height: 0; padding: 18px 16px 14px; }
  .ec-page .ec13-partners--3 .ec13-pcard--aws { grid-column: 1 / -1; }
}
/* Awards: three in one row; on phones the third centres under the pair */
.ec-page .ec13-awards__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767.98px) {
  .ec-page .ec13-awards__list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-page .ec13-awards__list--3 li:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
}

/* Platforms: four tiles per row (8 technologies, 4 industries) so no row is left with a stray tile */
@media (min-width: 1024px) {
  .ec-page .ec-platform-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 600px; }
}
@media (min-width: 1330px) {
  .ec-page .ec-platform-grid--4 { flex: 0 0 594px; grid-template-columns: repeat(4, 132px); }
}

/* Systems: six cards = a featured first card + five; the last card spans the row so none is left alone */
@media (min-width: 640px) {
  .ec-page .ec-sysgrid--6 .ec-syscard:last-child { grid-column: 1 / -1; }
}

/* Services: same frame for every tab's media */
.ec-page--saas #services .ec9-shot__frame img { aspect-ratio: 2 / 1; height: auto; object-fit: cover; object-position: 50% 0; }

/* How We Work: "Your product" icon, and the step 3 SaaS dashboard scene */
.ec-page--saas .hwj .i--layers { --ii: url("../img/ecommerce/icons/ec-step-layers.svg"); }
.ec-page--saas .s2d__av { width: 26px; height: 26px; margin-left: 14px; border-radius: 50%; background: var(--sk); }
.ec-page--saas .s2d__body { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
.ec-page--saas .s2d__side { display: grid; align-content: start; gap: 10px; padding: 12px; border-radius: 14px; background: #F4F8F6; }
.ec-page--saas .s2d__side i { height: 10px; border-radius: 5px; background: var(--sk); }
.ec-page--saas .s2d__side i.on { background: var(--g); }
.ec-page--saas .s2d__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ec-page--saas .s2d__kpi { padding: 12px; }
.ec-page--saas .s2d__kpi small { display: block; margin-bottom: 8px; font-size: 11px; color: #5f6763; }
.ec-page--saas .s2d__kpi .sk { width: 70%; height: 14px; }
.ec-page--saas .s2d__chart { margin-top: 12px; padding: 12px 14px; }
.ec-page--saas .s2d__chart b { font-size: 12px; }
.ec-page--saas .s2d__bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; margin-top: 10px; }
.ec-page--saas .s2d__bars i { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #00B26B, #9ADDBB); }
@media (max-width: 480px) {
  .ec-page--saas .s2d__body { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .ec-page--saas .s2d__bars { height: 60px; }
}


/* review #1461: case-tile captions (client names) in solid white on a dark scrim, so the green corner never lightens them */
.ec-page--saas .ec-tile__client { color: #fff; }

/* Contact: "Rather pick a time yourself?" booking link under What happens next */
.ec-page--saas .pv-cal { margin-top: 32px; padding-top: 24px; max-width: 420px; border-top: 1px solid rgba(255, 255, 255, .16); }
.ec-page--saas .pv-cal__q { margin: 0; font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, .78); }
.ec-page--saas .pv-cal__link { display: inline-block; margin-top: 6px; font-size: 16px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ec-page--saas .pv-cal__link:hover { color: #6EE7B7; }
.ec-page--saas .pv-cal__link:focus-visible { outline: 2px solid #6EE7B7; outline-offset: 3px; border-radius: 4px; }
.ec-page--saas .pv-cal__who { margin: 6px 0 0; font-size: 14px; line-height: 21px; color: rgba(255, 255, 255, .72); }

/* tighter gaps (as on eCommerce): next section after the services stage, partnerships -> platforms, platforms intro -> content */
.ec-page--saas #services + * { position: relative; z-index: 6; }   /* pulled up under the stage's empty lower part (JS negative margin): paint over it */
.ec-page--saas .ec13-pa { padding-bottom: calc(var(--ec-sec-y) * .5); }
.ec-page--saas .ec-xp > .ec-prows { margin-top: 0; }

/* Closing CTA logo strip: SaaS client logos (sizes per logo; the eCommerce ones are tuned for its own order) */
.ec-page.ec-page--saas .ec14-logos li:nth-child(n) img { height: 20px; max-width: 110px; }
.ec-page.ec-page--saas .ec14-logos li:nth-child(4n+2) img { height: 16px; }
.ec-page.ec-page--saas .ec14-logos li:nth-child(4n+4) img { height: 34px; }

/* Closing CTA quote: the ACS crest needs more height than a wordmark to read */
.ec-page--saas .ec14-quote__by img { height: 46px; }

/* QA SD-11: the closing card's client logos wrap instead of sliding off the card (phones) or running under the photo (tablets) */
@media (max-width: 639.98px) {
  .ec-page--saas .ec14-logos { flex-wrap: wrap; justify-content: flex-start; gap: 12px 20px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .ec-page--saas .ec14-logos li { flex: 0 0 auto; padding: 0; animation: none; }
  .ec-page--saas .ec14-logos .ec14-logos__dup { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .ec-page--saas .ec14-logos { flex-wrap: wrap; justify-content: flex-start; gap: 12px 22px; }
  .ec-page--saas .ec14-logos img { height: 20px; max-width: 110px; }
  .ec-page--saas .ec14-logos li:nth-child(4n+2) img { height: 16px; }
  .ec-page--saas .ec14-logos li:nth-child(4n+4) img { height: 34px; }
}

/* QA SD-14: dots under the phone slider of "What Makes Us Different" (built by saas-services.js) */
.ec-page--saas .ec11-why__dots { display: none; }
@media (max-width: 639.98px) {
  .ec-page--saas .ec11-why__dots { display: flex; justify-content: center; margin-top: 8px; }
  .ec-page--saas .ec11-why__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
  .ec-page--saas .ec11-why__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; background: #C5CEC9; transition: width .3s, margin .3s, background-color .3s; }
  .ec-page--saas .ec11-why__dot.is-active::before { width: 24px; margin-left: -12px; background: #00744A; }
  .ec-page--saas .ec11-why__dot:focus-visible { outline: 2px solid #00744A; outline-offset: -2px; border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) { .ec-page--saas .ec11-why__dot::before { transition: none; } }

