/* Approved homepage mobile review changes. Desktop styles remain untouched. */

.coach-mobile-accordion,
.mobile-story-controls {
  display: none;
}

/* Four compliance cards share one deliberate desktop layout. */
.div-block-296.compliance-cards {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) repeat(2, minmax(0, 1fr));
}

.compliance-heading {
  grid-row: 1 / span 2;
}

.compliance-card {
  min-width: 0;
}

.compliance-standard-badge {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

@media screen and (max-width: 991px) {
  .div-block-296.compliance-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compliance-heading {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media screen and (max-width: 767px) {
  /* Keep every customer logo proportional and give Safari a real flex gap.
     The generated styles combine min-width, max-width, and item margins,
     which can make adjacent logos overlap on iOS browsers. */
  .body .marquee-2 {
    gap: 32px;
  }

  .body .quote-marquee-items-2 {
    gap: 32px;
    width: max-content;
  }

  .body .small-quote-item-3 {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .body .small-quote-avatar-2,
  .body .small-quote-avatar-2.belcorp,
  .body .small-quote-avatar-2.cno,
  .body .small-quote-avatar-2.deckor,
  .body .small-quote-avatar-2.northwest,
  .body .small-quote-avatar-2.shipt,
  .body .small-quote-avatar-2.unify,
  .body .small-quote-avatar-2.hdfc {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 132px;
    height: 24px;
    object-fit: contain;
  }

  /* Keep peer-card carousels compact while making navigation obvious. */
  .slider-4,
  .slider-5,
  .slider-6 {
    padding-bottom: 72px;
  }

  .slider-6 {
    width: calc(100vw - 16px);
    max-width: none;
    margin-right: calc(50% - 50vw + 8px);
    margin-left: calc(50% - 50vw + 8px);
  }

  .slider-4 .left-arrow-2,
  .slider-4 .right-arrow-3,
  .slider-5 .left-arrow-3,
  .slider-5 .right-arrow-4,
  .slider-6 .left-arrow-4,
  .slider-6 .right-arrow-5 {
    top: auto;
    bottom: 8px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #d9d4ca;
    border-radius: 50%;
    background: #fefaf3eb;
    color: #2f2c25;
    box-shadow: 0 2px 8px #2f2c2514;
    backdrop-filter: blur(8px);
  }

  .slider-4 .w-slider-arrow-left > *,
  .slider-4 .w-slider-arrow-right > *,
  .slider-5 .w-slider-arrow-left > *,
  .slider-5 .w-slider-arrow-right > *,
  .slider-6 .w-slider-arrow-left > *,
  .slider-6 .w-slider-arrow-right > * {
    display: none !important;
  }

  .slider-4 .w-slider-arrow-left::before,
  .slider-4 .w-slider-arrow-right::before,
  .slider-5 .w-slider-arrow-left::before,
  .slider-5 .w-slider-arrow-right::before,
  .slider-6 .w-slider-arrow-left::before,
  .slider-6 .w-slider-arrow-right::before,
  .mobile-carousel-arrow::before {
    width: 10px;
    height: 10px;
    border-right: 2px solid #2f2c25;
    border-bottom: 2px solid #2f2c25;
    content: "";
  }

  .slider-4 .w-slider-arrow-left::before,
  .slider-5 .w-slider-arrow-left::before,
  .slider-6 .w-slider-arrow-left::before,
  .mobile-carousel-arrow:first-child::before {
    transform: rotate(135deg);
  }

  .slider-4 .w-slider-arrow-right::before,
  .slider-5 .w-slider-arrow-right::before,
  .slider-6 .w-slider-arrow-right::before,
  .mobile-carousel-arrow:last-child::before {
    transform: rotate(-45deg);
  }

  .slider-4 .left-arrow-2,
  .slider-5 .left-arrow-3,
  .slider-6 .left-arrow-4 {
    right: auto;
    left: 16px;
  }

  .slider-4 .right-arrow-3,
  .slider-5 .right-arrow-4,
  .slider-6 .right-arrow-5 {
    right: 16px;
    left: auto;
  }

  .slider-4 .w-slider-nav,
  .slider-5 .w-slider-nav,
  .slider-6 .w-slider-nav {
    bottom: 22px;
    pointer-events: none;
  }

  /* Product carousel: restrained arrow navigation before the card. */
  .slider-5 {
    padding-top: 56px;
    padding-bottom: 0;
  }

  .slider-5 .left-arrow-3,
  .slider-5 .right-arrow-4 {
    top: 4px;
    bottom: auto;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-color: #e5e1d9;
    background: #fefaf380;
    color: #4a4a4a;
    box-shadow: none;
    backdrop-filter: none;
  }

  .slider-5 .left-arrow-3 {
    right: 68px;
    left: auto;
  }

  .slider-5 .right-arrow-4 {
    right: 16px;
  }

  .slider-5 .slide-nav-2 {
    display: none !important;
  }

  .slider-5 .w-slider-arrow-left::before,
  .slider-5 .w-slider-arrow-right::before {
    width: 8px;
    height: 8px;
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
  }

  .w-slider-arrow-left:focus-visible,
  .w-slider-arrow-right:focus-visible,
  .mobile-carousel-arrow:focus-visible,
  .coach-mobile-trigger:focus-visible {
    outline: 3px solid #1a7a6d;
    outline-offset: 3px;
  }

  /* Fit the organization-chart animation inside its mobile frame. */
  .div-block-128 {
    padding-right: 0;
    padding-left: 0;
    overflow: hidden;
  }

  .lottie-animation-15 {
    aspect-ratio: 1222 / 554;
    width: 100%;
    overflow: hidden;
    display: flex !important;
  }

  .lottie-animation-7 {
    display: none !important;
  }

  .lottie-animation-15 svg {
    overflow: hidden !important;
  }

  /* Coach: all capabilities remain visible as a vertical accordion. */
  .integration-section.coach .tabs-12 {
    display: none;
  }

  .coach-mobile-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 20px 40px;
  }

  .coach-mobile-item {
    overflow: hidden;
    border: 1px solid #e1ddd4;
    border-radius: 12px;
    background: #fefaf3;
  }

  .coach-mobile-item.is-active {
    border-color: #1a7a6d;
    box-shadow: 0 6px 18px #2f2c2514;
  }

  .coach-mobile-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: #2f2c25;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .coach-mobile-icon {
    display: flex;
    flex: 0 0 40px;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 8px;
    background: #1a7a6d;
  }

  .coach-mobile-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
  }

  .coach-mobile-label {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .coach-mobile-chevron {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    transition: transform 200ms ease;
  }

  .coach-mobile-item.is-active .coach-mobile-chevron {
    transform: rotate(180deg);
  }

  .coach-mobile-panel[hidden] {
    display: none;
  }

  .coach-mobile-panel {
    padding: 0 16px 16px;
  }

  .coach-mobile-lottie {
    aspect-ratio: 339 / 281;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
  }

  /* Integration narrative: natural-scroll activation, no scroll trapping. */
  .integration-section .div-block-155 {
    display: contents;
  }

  .integration-section .div-block-129.coach {
    order: 1;
    margin-bottom: 32px;
  }

  .integration-section .right-jason-wrapper {
    order: 2;
    margin-bottom: 32px;
  }

  .how-it-works-pointer-wrapper.integration-scroll-steps {
    order: 3;
    gap: 0;
    margin-top: 0;
  }

  .integration-scroll-steps .point-wrapper {
    position: relative;
    width: 100%;
    min-height: 72px;
    padding: 24px 0;
    border-bottom: 1px solid #dedbd4;
    cursor: pointer;
  }

  .integration-scroll-steps .point-wrapper::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40%;
    height: 3px;
    content: "";
    background: #1a7a6d;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 240ms ease;
  }

  .integration-scroll-steps .point-wrapper.is-active::after {
    transform: scaleX(1);
  }

  .integration-scroll-steps .integration-subtitle {
    display: none !important;
    margin-top: 12px;
    margin-bottom: 0;
  }

  .integration-scroll-steps .point-wrapper.is-active .integration-subtitle,
  .integration-scroll-steps.motion-reduced .integration-subtitle {
    display: block !important;
  }

  .integration-scroll-steps .accordion-timer-line {
    display: none !important;
  }

  .integration-scroll-steps .point-wrapper:focus-visible {
    outline: 3px solid #1a7a6d;
    outline-offset: 4px;
  }

  /* Customer stories: one snap-aligned story at a time. */
  .div-block-232.mobile-story-carousel {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    padding: 0 8px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .div-block-232.mobile-story-carousel::-webkit-scrollbar {
    display: none;
  }

  .div-block-232.mobile-story-carousel > a {
    box-sizing: border-box;
    flex: 0 0 calc(100% - 8px);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .div-block-232.mobile-story-carousel .div-block-231 {
    box-sizing: border-box;
    height: 100%;
    margin-bottom: 0;
    padding: 24px 16px;
    border: 1px solid #e1ddd4;
    border-radius: 12px;
  }

  .div-block-232.mobile-story-carousel .heading-49 {
    font-size: 24px;
    line-height: 28px;
  }

  .div-block-232.mobile-story-carousel .paragraph-60 {
    font-size: 15px;
    line-height: 22px;
  }

  .div-block-232.mobile-story-carousel .paragraph-61 {
    width: auto;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: .06em;
  }

  .mobile-story-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 8px 8px 0;
  }

  .mobile-story-arrows {
    display: flex;
    gap: 8px;
  }

  .mobile-carousel-arrow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #d9d4ca;
    border-radius: 50%;
    background: #fefaf3;
    color: #2f2c25;
    font-size: 0;
    line-height: 1;
    box-shadow: 0 2px 8px #2f2c2514;
    cursor: pointer;
  }

  .mobile-carousel-arrow span {
    display: none;
  }

  .mobile-carousel-arrow:disabled {
    opacity: .35;
    cursor: default;
  }

  .mobile-story-position {
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  /* Keep the compliance cards inside the viewport at mobile-landscape widths. */
  .div-block-235 {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0 !important;
    padding-top: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .div-block-296.compliance-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    box-sizing: border-box;
    margin-top: 0;
    padding-right: 20px;
    padding-left: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .div-block-296.compliance-cards .div-block-241 {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .div-block-236,
  .div-block-237 {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .compliance-heading {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coach-mobile-chevron,
  .integration-scroll-steps .point-wrapper::after,
  .div-block-232.mobile-story-carousel {
    scroll-behavior: auto;
    transition: none;
  }
}
