/* Touch and viewport details shared by the public site and account pages. */
html {
  -webkit-tap-highlight-color: transparent;
}

.scalistic-creators-composite .hero-media-slot.d1-top-left-card,
.scalistic-creators-composite .hero-media-slot.d1-bottom-left-card {
  background: #fff1f6;
}

.trial-reels-layout-page .wws-wrapper img.wws-video {
  aspect-ratio: 783 / 568;
  object-fit: contain;
  background: #fff1f6;
}

a, button, summary, [role="button"], input[type="submit"] {
  touch-action: manipulation;
}

button, summary, [role="button"], .w-button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]), textarea, select {
    font-size: max(16px, 1em) !important;
  }

  a:active, button:active, [role="button"]:active, .w-button:active {
    opacity: .88;
  }

  button:active, .w-button:active, .pill:active {
    transform: scale(.97);
    transition: transform 120ms cubic-bezier(.23, 1, .32, 1), opacity 120ms ease;
  }

  .social-links:hover,
  .video-lightbox-play-icon:hover,
  .header-logo:hover,
  .button-primary-2:hover,
  .scalistic-trial-card:hover .scalistic-trial-visual,
  .nr-card:hover .nr-picture > img,
  .panel:hover {
    transform: none !important;
  }

}

@supports (min-height: 100dvh) {
  .login-page { min-height: 100dvh; }
  .auth { min-height: calc(100dvh - 84px); }
}

@supports (min-height: 100svh) {
  .apply-hero__content { min-height: 100svh; }
}

@media (max-width: 991px) {
  .header-updated {
    padding-top: calc(15px + env(safe-area-inset-top, 0px));
  }

  .top {
    height: calc(84px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }

  .login-page .login-header {
    height: calc(76px + env(safe-area-inset-top, 0px));
    min-height: calc(76px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }

  .sa-dark-footer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .login-page .login-footer, footer:not(.sa-dark-footer) {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .login-page .login-header {
    height: calc(68px + env(safe-area-inset-top, 0px));
    min-height: calc(68px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 767px) {
  .faq-section-updated .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-section-updated .faq-wrap > * {
    min-width: 0;
  }

  .faq-section-updated .faq-item-2 {
    box-sizing: border-box;
    width: 100%;
    margin: 15px 0;
  }
  .header-updated .mobile-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -7px;
  }

  .header-updated .menu-parent {
    flex: none;
    width: 30px;
    height: 30px;
  }

  /* Keep the home collage in the reading order on narrow screens. */
  .banner-section .quick-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner-section .banner-right {
    display: block !important;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    height: auto !important;
    padding: 0 !important;
  }

  .banner-section .banner-images-wrapper.scalistic-creators-hero {
    width: 100%;
    height: calc((100vw - 40px) * .75) !important;
    min-height: 0 !important;
  }

  .banner-section .scalistic-creators-hero__plane {
    width: 100%;
  }

  /* Give the featured article an intrinsic box so its lazy image can load. */
  .leatest-blog .blog-thumb a {
    display: block;
    width: 100%;
  }

  .leatest-blog .blog-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 18px;
  }

  .our-process img.mobile-img {
    display: block;
    width: 150px;
    height: auto;
    aspect-ratio: 429 / 415;
    object-fit: contain;
  }

  .our-process img.mobile-img[src$="bcb92799ca078e55a50b.png"] {
    aspect-ratio: 394 / 389;
  }

  .our-process img.mobile-img[src$="90fe52db3736873d3058.png"] {
    aspect-ratio: 436 / 306;
  }

  .native-referral-page .nr-reveal-target {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

  /* Above-the-fold content should be legible as soon as the page renders. */
  .header-updated > .section-wrap,
  .banner-section .animated-heading,
  .banner-section .banner-content-inner > div:not([class]),
  .banner-section .banner-para,
  .banner-section .header-btn,
  .inner-banner-white .w-embed,
  .inner-banner-white .banner-description,
  .inner-banner-white .banner-button-outer,
  .inner-banner-wrapper .html-embed-5,
  .inner-banner-wrapper .banner-description,
  .inner-banner-wrapper .social-wrap,
  .contact-wrapper .contact-form-block,
  .faq-section-updated .headingh2,
  .faq-section-updated .faq-item-2,
  .blog-wrapper .w-embed,
  .blog-wrapper .blog-banner-description,
  .leatest-blog-wrapper .leatest-blog {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }

/* Keep hero copy clear of the overscanned hero art on desktop. */
@media (min-width: 992px) {
  .banner-section .banner-para { max-width: calc(100% - 48px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Payout flow: socials, through the S logo, into the payout card. */
.flow-beams path {
  fill: none;
  stroke: #dd0353;
  stroke-width: 3;
  stroke-dasharray: 12 100;
  animation: payout-flow 1.8s linear infinite;
}

@keyframes payout-flow {
  from { stroke-dashoffset: -100; }
  to { stroke-dashoffset: 12; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-beams path { animation: none; stroke-dasharray: none; }
}

@media (min-width: 768px) {
  .unleash-creative-mastery-section .svg-contiant-links { overflow: visible; }
  .unleash-creative-mastery-section .middle-column { position: relative; z-index: 0; }
  .unleash-creative-mastery-section .flex-vertical { position: relative; z-index: 1; }
}

.unleash-creative-mastery-section .confirmation-message {
  gap: 12px;
  justify-content: flex-start;
  padding: 12px 16px;
}

.unleash-creative-mastery-section .confirm-circle {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.unleash-creative-mastery-section .confirm-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.unleash-creative-mastery-section .confirm-message-heading { margin: 0; }
