/* Rails archive port: keep the approved Webflow design, with only Rails integration fixes. */

.archive-theme-mobile-montage {
  display: none;
}

.white_section._02 .max-w-width > .testi-small-flex:first-child {
  padding-top: 18px;
}

.testi-photo._04 {
  background-image: url("/static/archive-assets/hero-avatars/author-avatar-05.webp");
  margin-left: -5px;
}

.testi-photo._05 {
  background-image: url("/static/archive-assets/hero-avatars/author-avatar-06.webp");
  margin-left: -5px;
}

.testi-photo._06 {
  background-image: url("/static/archive-assets/hero-avatars/author-avatar-07.webp");
  margin-left: -5px;
}

.white_section._02 .margin-100.make-50 {
  margin-top: 54px;
}

.hero .testi-photo {
  min-height: 32px;
  min-width: 32px;
  top: 3px;
}

@media screen and (min-width: 992px) {
  #pricing .pricing-card-pro .first-part-prc.second {
    overflow: visible;
  }

  #pricing .pricing-card-pro .pricing-plan-label {
    margin-bottom: 0;
    position: absolute;
    right: 22px;
    top: 0;
    transform: translateY(-50%);
    z-index: 2;
  }

  .navbar-component {
    max-width: 1320px;
  }

  .hero {
    flex-direction: column;
    gap: 44px;
    min-height: auto;
    padding-bottom: 70px;
    padding-top: 135px;
  }

  .hero > .container {
    max-width: 920px;
  }

  .hero > .container > .max-w-width > .testi-small-flex,
  .hero > .container > .max-w-width > .testi-small-flex * {
    visibility: visible !important;
  }

  .hero > .container > .max-w-width > .testi-small-flex {
    gap: 14px;
    margin-bottom: 34px;
    padding: 10px 18px;
  }

  .hero > .container > .max-w-width > .testi-small-flex .testi-photo {
    flex: 0 0 28px;
    height: 28px;
    min-height: 28px;
    min-width: 28px;
    top: 0;
    width: 28px;
  }

  .hero > .container > .max-w-width > .testi-small-flex .testi-photo:not(:first-child) {
    margin-left: -4px;
  }

  .hero .logo-absolute {
    inset: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: min(1180px, 100%);
    position: relative;
    width: 100%;
  }

  .hero .logo-absolute .margin-100 {
    margin-top: 0;
    width: 100%;
  }

  .hero .perfomance-grid {
    margin-top: 0;
  }

  .white_section._02 {
    padding-top: 32px !important;
  }

  .white_section._02 .margin-100.make-50 {
    margin-top: 34px;
  }
}

.generated-feature-preview,
.marketing-connect-preview,
.global-pod-preview {
  align-items: center;
  background: #f5f8fc !important;
  justify-content: center;
  overflow: hidden;
}

.generated-feature-image,
.marketing-connect-image,
.global-pod-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ebook-paperback-preview .generated-feature-image,
.discount-codes-preview .generated-feature-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.instant-sales-preview {
  background: #fff !important;
}

.instant-sales-preview .generated-feature-image {
  background: transparent !important;
  object-fit: contain !important;
  padding: 24px !important;
}

@media screen and (max-width: 767px) {
  .instant-sales-preview .generated-feature-image {
    padding: 18px !important;
  }
}

@media screen and (min-width: 992px) {
  .white_section._04 #pricing + section > .grid {
    grid-column-gap: 28px !important;
    grid-row-gap: 28px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin: 72px auto 0 !important;
    max-width: 1200px !important;
    width: calc(100% - 64px) !important;
  }

  .white_section._04 #pricing + section .block-1._03 {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    min-height: 178px;
    padding: 26px 24px 24px !important;
  }

  .white_section._04 #pricing + section .chart-grid._02 {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 42px 1fr;
    margin-bottom: 14px;
  }

  .white_section._04 #pricing + section .pricing-icon,
  .white_section._04 #pricing + section .image-2 {
    align-items: center;
    background-color: rgba(0, 0, 219, 0.08);
    background-size: 22px 22px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 219, 0.08);
    display: flex;
    height: 42px;
    justify-content: center;
    object-fit: contain;
    padding: 9px;
    width: 42px;
  }

  .white_section._04 #pricing + section .pricing-icon._01 {
    background-color: rgba(65, 166, 62, 0.1);
    box-shadow: inset 0 0 0 1px rgba(65, 166, 62, 0.12);
  }

  .white_section._04 #pricing + section .pricing-icon .image-4 {
    border-radius: 7px;
    height: 24px;
    object-fit: cover;
    width: 24px;
  }

  .white_section._04 #pricing + section .second-title._02 {
    color: #111827;
    font-size: 1.08rem;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
  }

  .white_section._04 #pricing + section .p-01 {
    color: rgba(17, 24, 39, 0.68);
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 0;
  }
}

@media screen and (max-width: 767px) {
  .white_section._02 .max-w-width > .testi-small-flex:first-child {
    padding-top: 12px;
  }

  .hero {
    background-size: auto, auto, auto 840px !important;
  }

  .mobile-hero-copy .p-02.header.small {
    margin-top: 6px !important;
  }

  .mobile-performance {
    margin-top: 34px !important;
  }

  .white_section._02 .margin-100.make-50 {
    margin-top: 18px;
  }

  .themes-feature-card .themes-preview-top {
    aspect-ratio: auto !important;
    background: transparent !important;
    display: block !important;
    height: auto !important;
    margin-bottom: 14px !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .themes-preview-top .themes-feature-preview {
    display: none !important;
  }

  .archive-theme-mobile-montage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  /* Sticky 50% Off trigger — mobile adjustments */
  .bs-sticky-offer {
    left: 14px;
    bottom: 14px;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(65, 166, 62, 0.25);
  }

  .archive-theme-mobile-montage img {
    aspect-ratio: 5 / 3;
    background: #fff;
    border-radius: 8px;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    width: 100%;
  }
}
