/*
 * Landing page templates (see jb_landing_templates() in inc/landing-settings.php).
 *
 * Loaded on the generic family: generic, UK and Canada generic, competitor and
 * the TikTok / Instagram / YouTube / Amazon influencers pages. The influencer
 * marketing software page (page-for-imp.php) keeps its own styles.
 * Fonts (Inter Tight, Poppins) are enqueued separately.
 */

/* -------------------------------------------------------------------------
 * Shared by every template in the family (moved from each template's <style>)
 * ---------------------------------------------------------------------- */

.features-item {
  width: 100%;
  max-width: unset;
}

.test-slider .videos-slider.slider {
  padding: 0px;
}

.test-slider .videos-slider .item {
  margin: 0px 10px !important;
  min-width: 320px;
  height: 400px !important;
}

/* Gradient text in the influencers pages' hero headline. */
.grad-color {
  -webkit-text-fill-color: rgba(255, 255, 255, 0);
  background: linear-gradient(103deg, rgb(255, 27, 96) 37.55%, rgb(143, 81, 214) 83.47%, rgb(4, 119, 245) 124.19%) text;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 48px !important;
    line-height: 1.2 !important;
  }

  .site-color {
    color: #ff1b60;
  }

  .d-block {
    display: block;
  }

  .features-item.p-0 {
    padding: 0px;
  }

  .features-item .features-final-img {
    margin-left: -45px;
    margin-top: -31px;
  }

  .test-slider .videos-slider .item {
    width: auto !important;
    height: auto !important;
    max-width: 390px !important;
    min-height: 365px !important;
  }

  .test-slider .slider .slide-prev {
    transform: translateX(-50%);
    top: -150px;
    left: calc(100% - 120px);
  }

  .test-slider .slider .slide-next {
    right: 0;
    top: -150px;
    transform: translateX(-50%);
  }
}

/* -------------------------------------------------------------------------
 * Competitor page only (page-for-competitor.php)
 * ---------------------------------------------------------------------- */

.comp-table td,
.comp-table th,
.comp-table tr,
.comp-table thead,
.comp-table tbody {
  border: 0px;
}

.comp-table {
  width: 100%;
  display: block;
}

.comp-table-header {
  display: flex;
  border-radius: 16px 16px 0 0;
  border-bottom: 0.86px solid #F2F5F7;
}

.comp-table-body {
  display: block;
}

.comp-table-th {
  font-family: "Red Hat Display";
  font-weight: 600;
  font-size: 16px;
  line-height: 19.2px;
  padding: 25px;
  border: 0.86px solid #F2F5F7;
  width: 150px;
  min-width: 150px;
  overflow: hidden;
  border-radius: 16px 16px 0px 0px;
  box-shadow: 0px 3.98px 8.96px 0px #0000001C;
  text-align: center;
  flex: 1;
}

.comp-table-th img {
  height: 28px;
  object-fit: contain;
}

.comp-table-row {
  display: flex;
}

.comp-table-row.last-child {
  border-bottom: 0.86px solid #F2F5F7;
}

.comp-table-td:nth-child(odd) {
  background-color: #F2F5F7;
  border-bottom: 0.86px solid #F2F5F7;
}

.comp-table-td {
  font-family: Red Hat Display;
  font-weight: 600;
  font-size: 16px;
  line-height: 19.2px;
  padding: 25px;
  border-bottom: 0.86px solid #FFFFFF;
  width: 150px;
  min-width: 150px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 1;
}

.comp-table-th.first-child,
.comp-table-td.first-child {
  min-width: 290px;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
}

.tt-img {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1023px) {
  .margin-img {
    margin-bottom: -32px;
    margin-left: -32px;
    margin-right: -32px;
  }
}

@media (min-width: 1024px) {
  .comp-table-header {
    overflow: hidden;
  }

  .page-template-page-for-competitor .features-item .features-final-img {
    margin-left: -35px;
    margin-top: -35px;
  }

  .margin-img img {
    margin-top: -16px;
  }

  .desk-block {
    display: block;
  }
}

/* -------------------------------------------------------------------------
 * Mobile fixes
 * ---------------------------------------------------------------------- */

/* Hero stat counters: values come from the settings, so the number box sizes to
   its digits (min-width set in js/app.js) instead of a fixed w-5 / w-12 width. */
.slide-info #num_1,
.slide-info #num_2,
.slide-info #num_3,
.slide-info #num_4 {
  width: auto;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  /* Hero media column: ml-8 + w-full pushed it past the right edge of the screen. */
  .max-w-md.w-full.ml-8.lg\:ml-auto {
    max-width: calc(100% - 2rem);
  }

  /* Section wrappers had left padding only, so cards touched the right edge. */
  .mx-auto.pl-4.md\:pl-10 {
    padding-right: 1rem;
  }

  /* Competitor comparison table: narrower cells and a sticky "Features" column. */
  .comp-table .comp-table-th,
  .comp-table .comp-table-td {
    width: 120px;
    min-width: 120px;
    padding: 14px 10px;
    font-size: 14px;
    line-height: 1.3;
  }

  .comp-table .comp-table-th.first-child,
  .comp-table .comp-table-td.first-child {
    width: 136px;
    min-width: 136px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.12);
  }

  .comp-table .comp-table-td.first-child {
    background: #f2f5f7;
  }
}

/* Final CTA: the image was pulled up (133px, or 28.57vw on the tablet image) and
   covered the button. */
@media (min-width: 531px) and (max-width: 767px) {
  .book-demo .book-demo-img-tablet {
    margin-top: -60px;
  }
}

@media (max-width: 530px) {
  .book-demo .book-demo-img-mob {
    margin-top: -24px;
  }
}
