/* AI Poster Generator page styles. Do not share this file with other pages. */

.c-cta-btn {
  outline: none !important;
  color: #fff;
  background: var(--primary-color);
  border: 2px solid var(--primary-color) !important;
  border-radius: 10px;
  font-family: Montserrat-SemiBold !important;
  font-size: 18px;
  cursor: pointer;
  gap: 0;
}

.c-cta-btn svg {
  margin-left: 10px !important;
  transition: margin-left 0.5s ease;
}

.c-cta-btn:hover svg {
  margin-left: 15px !important;
}

.c-cta-btn:hover {
  transition: 0.5s;
  background: #006bee;
  box-shadow: 2px 2px 4px rgb(0 0 0/35%);
}

.c-container-barcode {
  max-width: 1380px !important;
  margin-inline: auto;
}

a {
  text-decoration: none !important;
}

.section-spacing-100{
  margin-top: 100px;
}
.section-spacing-p-m-100{
  margin-top: 50px !important;
  padding-top: 50px !important;
}
.hm_footer_section{
  margin:0 !important ;
  margin-top: -60px !important;
}
.hm_footer_section .c-footer-svg{
  background-color: transparent !important;
}

.tpl-gallery-section {
  width: 100%;
  padding: 0px 22px 0px;
  background: #fff;
  box-sizing: border-box;
}

.tpl-gallery-inner {
  max-width: 1876px; /* 1920 - 44px side padding */
  margin: 0 auto;
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 359px));
  justify-content: center;
  gap: 20px;
  align-items: start;
}

.tpl-card {
  display: block;
  width: 100%;
  max-width: 359px;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid #E8E8E8;
  border-radius: 15px;
  background: #fff;
  line-height: 0;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.22s ease;
}

.tpl-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.tpl-card-crop img,
.tpl-card.tpl-crop-poster img {
  /* Files are 371px wide with a transparent rounded edge. Crop 8px per side so the border sits on the artwork. */
  width: calc(100% * 371 / 355);
  max-width: none;
  height: auto;
  /* aspect-ratio: auto; */
  margin: calc(100% * -8 / 355);
  display: block;
  object-fit: fill;
  border: none;
  border-radius: 0;
}

.tpl-grid.is-packed {
  display: block;
  position: relative;
}

.tpl-grid.is-packed .tpl-card {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0px 0px 6px 0px #0000001F;
}

.tpl-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #00000099;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
  pointer-events: none;
}

.tpl-card::after {
  content: "Recreate with AI";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-sizing: border-box;
  width: 95%;
  max-width: 188.76px;
  height: 40px;
  padding: 7.5px 12.19px 7.5px 34.57px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0069FF;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNiAzdjJsMyAzIDIgMUg5bC0zIDR2MUg1di0xTDEgOUgwbDEtMSA0LTN6bTYtMyAyIDF2MWgxLTFsLTIgMmgtMWwtMS0ySDlsMS0xem0wIDEyIDIgMXYxaDEtMWwtMiAyaC0xbC0xLTJIOWwxLTF6IiBmaWxsPSIjZmZmIi8+PC9zdmc+");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 15px 18px;
  border-radius: 2.81px;
  color: #fff;
  font-family: Montserrat-SemiBold;
  font-size: 16px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.error-wrapper .message{
  white-space: nowrap;
}
.tpl-card:hover::before,
.tpl-card:hover::after,
.tpl-card:focus-visible::before,
.tpl-card:focus-visible::after {
  opacity: 1;
}



@media (max-width: 1200px) {
  .tpl-grid {
    grid-template-columns: repeat(4, minmax(0, 359px));
  }
}

@media (max-width: 900px) {
  .tpl-grid {
    grid-template-columns: repeat(3, minmax(0, 359px));
  }
}

@media (max-width: 600px) {
  .tpl-gallery-section {
    padding: 0px 14px 00px;
  }
  .tpl-grid {
    grid-template-columns: repeat(2, minmax(0, 359px));
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .tpl-grid {
    grid-template-columns: 1fr;
  }
}

.htuse-section {
  padding: 0px 20px 0px;
  background: #FFFFFF;
  box-sizing: border-box;
  width: 100%;
}

.htuse-inner {
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.htuse-heading {
  /* font-family: Montserrat-Bold;
  font-size: 46px;
  line-height: 1.2;
  color: #151515; */
  text-align: center;
  margin: 0 0 40px 0;
}

.htuse-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0 auto;
  box-sizing: border-box;
}

.htuse-card {
  width: 322px;
  height: 313px;
  /* min-height: 313px; */
  border-radius: 15px;
  background: #FFFFFF;
  box-shadow: 3px 3px 11px 0px #0000000F, -3px -3px 10px 0px #00000008;
  padding: 20px 19px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-align: left;
  transition: all 0.3s ease;
}

.htuse-card:hover {
  /* transform: translateY(-2px); */
  transition: all 0.3s ease;
  box-shadow: 3px 3px 15px 0px #0000001A, -3px -3px 13px 0px #0000000F;

}

.htuse-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  width: 100%;
}

.htuse-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(94.86deg, rgba(235, 159, 148, 0.06) -4.34%, rgba(252, 112, 152, 0.06) 19.15%, rgba(200, 91, 234, 0.06) 49.19%, rgba(142, 121, 255, 0.06) 78.14%, rgba(96, 182, 255, 0.06) 104.9%);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.htuse-icon-box svg {
  /* width: 22px;
  height: 22px; */
  display: block;
}

.htuse-step-num {
  font-family: 'Montserrat-Bold';
  font-size: 40px;
  background: linear-gradient(94.86deg, rgba(235, 159, 148, 0.1) -4.34%, rgba(252, 112, 152, 0.1) 19.15%, rgba(200, 91, 234, 0.1) 49.19%, rgba(142, 121, 255, 0.1) 78.14%, rgba(96, 182, 255, 0.1) 104.9%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.htuse-card-title {
  font-family: 'Montserrat-Bold';
  font-size: 22px;
  line-height: 1.2;
  color: #151515;
  margin: 0 0 15px 0;
  padding: 0;
}

.htuse-card-desc {
  font-family: 'Montserrat-Medium';
  font-size: 16px;
  line-height: 1.5;
  color: #575D68;
  margin: 0;
  padding: 0;
}

.htuse-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.htuse-btn-wrapper a {
  text-decoration: none;
}

/* .htuse-cta-btn {
  background: #1A6BFF;
  color: #FFFFFF;
  font-family: 'Montserrat-Bold';
  font-size: 21px;
  border: none;
  border-radius: 8px;
  padding: 13px 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 1px 1px 3px 0px #0000004D;
  transition: all 0.2s ease;
}

.htuse-cta-btn svg{
  transition: all 0.5s ease;
}
.htuse-cta-btn:hover svg{
  transition: all 0.5s ease;
  margin-left:5px;
} */

.benefits-ai-section {
  padding: 0 20px 0;
  background: #FFFFFF;
  box-sizing: border-box;
  width: 100%;
}

.benefits-ai-inner {
  max-width: 1380px;
  margin: 0 auto;
  box-sizing: border-box;
}

.benefits-ai-heading {
  /* font-family: Montserrat-Bold; */
  /* font-size: 46px; */
  /* line-height: 1.2; */
  /* color: #151515; */
  text-align: center;
  margin: 0 0 40px 0;
}

.benefits-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 440px);
  gap: 24px 30px;
  justify-content: center;
  margin: 0 auto;
  box-sizing: border-box;
}

.benefits-ai-card {
  width: 440px;
  height: 221px;
  /* min-height: 221px; */
  border-radius: 15px;
  background: #FFFFFF;
  box-shadow: 3px 3px 11px 0px #0000000F, -3px -3px 10px 0px #00000008;
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefits-ai-card:hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 3px 3px 15px 0px #0000001A,  -3px -3px 13px 0px #0000000F;

}

.benefits-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(94.86deg, rgba(235, 159, 148, 0.06) -4.34%, rgba(252, 112, 152, 0.06) 19.15%, rgba(200, 91, 234, 0.06) 49.19%, rgba(142, 121, 255, 0.06) 78.14%, rgba(96, 182, 255, 0.06) 104.9%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.benefits-icon-box svg {
  width: 32px;
  height: 32px;
  display: block;
}

.benefits-card-title {
  font-family: Montserrat-Bold;
  font-size: 22px;
  line-height: 1.2;
  color: #151515;
  margin: 0 0 10px 0;
  padding: 0;
}

.benefits-card-desc {
  font-family: Montserrat-Medium;
  font-size: 16px;
  line-height: 1.35;
  color: #575D68;
  margin: 0;
  padding: 0;
}

.benefits-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.benefits-btn-wrapper a {
  text-decoration: none;
}
.more-tools-section {
  padding: 0 20px 180px;
  background: #FFFFFF;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}
.more-tools-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    /* background: linear-gradient(
        85.3deg,
        rgba(235, 159, 148, 0.12) 3.8%,
        rgba(252, 112, 152, 0.12) 27.56%,
        rgba(200, 91, 234, 0.12) 57.96%,
        rgba(142, 121, 255, 0.12) 87.25%,
        rgba(96, 182, 255, 0.12) 114.33%
    );
    -webkit-mask-image: radial-gradient(
        circle at 4px 16px,
        #000 2px,
        transparent 2.6px
    );
    mask-image: radial-gradient(
        circle at 4px 16px,
        #000 2px,
        transparent 2.6px
    );
    -webkit-mask-size: 24px 24px;
    mask-size: 24px 24px; */
    background-image: radial-gradient(circle at 12px 18px, rgba(0, 105, 255, .05) 2px, transparent 2.6px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;

}
.more-tools-inner {
  max-width: 1380px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.more-tools-heading {
  /* font-family: Montserrat-Bold;
  font-size: 46px; */
  /* line-height: 1.2; */
  /* color: #151515; */
  text-align: center;
  margin: 0 0 40px 0;
}

.more-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 440px);
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
  box-sizing: border-box;
}

.more-tools-card {
  width: 440px;
  height: 407px;
  min-height: 407px;
  background: #FFFFFF;
  border-radius: 15px;
  box-shadow: 3px 3px 11px 0px #0000000F, -3px -3px 10px 0px #00000008;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.more-tools-card:hover {
  box-shadow: 3px 3px 12px 0px #00000014,  -3px -3px 11px 0px #0000000F;

}

.more-tools-img-wrapper {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 400 / 210;
  height: auto;
  border-radius: 15px;
  overflow: hidden;
  background: #F3F1FD;
  flex-shrink: 0;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-tools-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F1FD;
  border-radius: 15px;
  overflow: hidden;
}

.more-tools-img-placeholder img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 15px;
}

.more-tools-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.more-tools-title {
  font-family: Montserrat-Bold;
  font-size: 22px;
  line-height: 1.25;
  color: #151515;
  margin: 0 0 10px 0;
  padding: 0;
}

.more-tools-desc {
  font-family: Montserrat-Medium;
  font-size: 16px;
  line-height: 1.4;
  color: #575D68;
  margin: 0 0 16px 0;
  padding: 0;
  flex-grow: 1;
}

.more-tools-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Montserrat-Bold;
  font-size: 20px;
  color: #1A6BFF;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  width: fit-content;
}

.more-tools-link span {
  color: #1A6BFF;
}

.more-tools-link svg {
  transition: transform 0.3s ease;
}

.more-tools-link:hover {
  color: #0D59EC;
}

.more-tools-link:hover span {
  color: #0D59EC;
}

.more-tools-link:hover svg {
  transform: translateX(4px);
}
.htuse-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-content: start;
  gap: 22px;
  max-width: 1354px;
}

.htuse-card {
  width: 100%;
  height: auto;
}

.benefits-ai-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: start;
}

.benefits-ai-card {
  width: 100%;
  height: auto;
}

.more-tools-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: start;
}

.more-tools-card {
  width: 100%;
  height: auto;
}

.more-tools-img-wrapper {
  max-width: 100%;
}

@media (max-width: 1200px) {
  .benefits-ai-grid,
  .more-tools-grid {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .htuse-heading,
  .benefits-ai-heading,
  .more-tools-heading {
    margin-bottom: 25px;
  }
  .htuse-cards {
    gap: 20px;
  }
  .htuse-card,
  .benefits-ai-card,
  .more-tools-card {
    min-height: 0;
  }
  .benefits-ai-grid,
  .more-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .htuse-card-title,
  .benefits-card-title,
  .more-tools-title {
    font-size: 20px;
  }
  .more-tools-link {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .htuse-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  .benefits-ai-grid,
  .more-tools-grid {
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .htuse-section,
  .benefits-ai-section,
  .more-tools-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .htuse-heading,
  .benefits-ai-heading,
  .more-tools-heading {
    margin-bottom: 18px;
  }
  .benefits-ai-grid,
  .more-tools-grid {
    grid-template-columns: 1fr;
  }
  .htuse-card,
  .benefits-ai-card,
  .more-tools-card {
    padding: 16px;
  }
  .htuse-card-top {
    margin-bottom: 16px;
  }
  .htuse-step-num {
    font-size: 32px;
  }
  .benefits-icon-box {
    margin-bottom: 12px;
  }
  .more-tools-img-wrapper {
    margin-bottom: 16px;
  }
  .htuse-card-title,
  .benefits-card-title,
  .more-tools-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .htuse-card-desc,
  .benefits-card-desc,
  .more-tools-desc {
    font-size: 14px;
  }
  .more-tools-link {
    font-size: 16px;
  }
  .htuse-btn-wrapper,
  .benefits-btn-wrapper {
    margin-top: 30px;
  }
  /* .htuse-cta-btn {
    width: 100%;
    max-width: 320px;
    font-size: 18px;
    padding: 12px 24px;
  } */
}
.trustedby-section {
  position: relative;
}

.trustedby-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background-image: radial-gradient(circle at 12px 18px, #8E79FF14 2px, transparent 2.6px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.trustedby-section > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  .section-spacing-100 {
    margin-top: 75px;
  }
  .trustedby-section .trusted-by {
    margin-top: 75px;
  }
  .more-tools-section {
    padding-bottom: 160px;
  }
}

@media (max-width: 768px) {
  .section-spacing-100 {
    margin-top: 50px;
  }
  .trustedby-section .trusted-by {
    margin-top: 50px;
  }
  .more-tools-section {
    padding-bottom: 130px;
  }
}

.trustedby-heading {
  font-family: 'Montserrat-ExtraBold';
  letter-spacing: -1.48px;
  display: block !important;
  text-align: center !important;
}

.trustedby-heading::before,
.trustedby-heading::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 500px) {
  .htuse-heading, .benefits-ai-heading, .more-tools-heading{
    font-size: 25px !important;
  }
  .htuse-card-title, .benefits-card-title, .more-tools-title{
    font-size: 16px !important;
  }
  .htuse-card-desc, .benefits-card-desc, .more-tools-desc{
    font-size: 13px !important;
  }
}

/* Shared template crop styles for tab switching */
.tpl-card-crop.tpl-crop-poster img {
  width: calc(100% * 371 / 355);
  max-width: none;
  height: auto;
  margin: calc(100% * -8 / 355);
  object-fit: fill;
  border: none;
  border-radius: 0;
}
.tpl-card-crop.tpl-crop-brochure img {
  width: calc(100% * 465 / 453);
  max-width: none;
  margin: calc(100% * -6 / 453);
}
.tpl-card-crop.tpl-crop-banner img {
  width: calc(100% * 371 / 359);
  max-width: none;
  height: auto;
  margin: calc(100% * -6 / 359);
}
.tpl-card-crop.tpl-crop-inset img {
  width: calc(100% * var(--iw) / (var(--iw) - var(--l) - var(--r)));
  max-width: none;
  height: auto;
  margin-top: calc(100% * var(--t) / (var(--iw) - var(--l) - var(--r)) * -1);
  margin-right: calc(100% * var(--r) / (var(--iw) - var(--l) - var(--r)) * -1);
  margin-bottom: calc(100% * var(--b) / (var(--iw) - var(--l) - var(--r)) * -1);
  margin-left: calc(100% * var(--l) / (var(--iw) - var(--l) - var(--r)) * -1);
}
.tpl-card.tpl-crop-flyer img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 15px;
}



/* ==========================================================================
   Smart AI Tools Carousel Section
   ========================================================================== */
.ai-tools-section {
  padding: 0 0 160px 0;
  position: relative;
  overflow: hidden;
}

.ai-tools-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12px 18px, #0069FF0F 2px, transparent 2.6px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.ai-tools-section .container {
  position: relative;
  z-index: 1;
}

.at-heading {
  font-family: 'Montserrat-ExtraBold';
  font-size: 46px;
  line-height: 100%;
  letter-spacing: -1.48px;
  color: #151515;
  text-align: center;
  margin: 0;
  box-shadow: 0px 4px 4px 0px #FFFFFF40;
}

.at-heading .at-highlight,
.at-heading .fm-heading-hilight {
  color: #0069ff;
}

.at-subheading,
.at-subheading.fm-subheading {
  font-family: "Montserrat-Medium", sans-serif;
  font-size: 18px !important;
  line-height: 100%;
  letter-spacing: 0;
  color: #575D68;
  text-align: center !important;
  margin: 15px auto 0 !important;
  max-width: 730px;
  display: block;
}

.at-carousel-shell {
  position: relative;
  width: 100%;
  margin-top: 0px !important;
  overflow: visible;
}

.at-carousel-track {
  outline: none !important;
}
.at-carousel-track:focus,
.at-carousel-track:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.at-carousel-track,
.at-carousel-track * {
  cursor: pointer !important;
}
.at-carousel-track.is-dragging,
.at-carousel-track.is-dragging * {
  cursor: grabbing !important;
}
.at-carousel-track {
  user-select: none;
  -webkit-user-select: none;
}
.at-carousel-track img {
  -webkit-user-drag: none;
}

.at-carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0px 48px 20px;
}

.at-carousel-track::-webkit-scrollbar {
  display: none;
}

.at-carousel-track.is-static {
  justify-content: center;
  overflow-x: hidden;
  cursor: default;
}

/* video shimmer placeholder before video loads */
.video-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #E6EBF5;
  pointer-events: none;
  transition: opacity .4s ease, visibility .4s ease;
}
.video-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 100%);
  animation: tsShimmer 1.4s ease-in-out infinite;
}
.video-shimmer.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.video-shimmer--overlay {
  background: transparent;
}
@keyframes tsShimmer {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .video-shimmer::after { animation: none; }
}

.at-card {
  --at-hover-pt: 152px;
  --at-btn-bottom: 25px;
  --at-img-shift: -20px;
  flex: 0 0 380px;
  width: 380px;
  position: relative;
  background: transparent;
  overflow: visible;
  padding-top: 120px;
  box-sizing: content-box;
}

.at-card-panel {
  width: 380px;
  height: 301px;
  background: #E8F1FF;
  border-radius: 20px;
  box-sizing: border-box;
  padding: 195px 22px 49px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: padding-top .35s ease;
}

.at-card-media {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
  transition: transform .35s ease;
}

.at-card-media img {
  display: block;
  object-fit: contain;
  object-position: center center;
  max-width: inherit;
}

.at-card--create-ai .at-card-media { top: 68px; max-width: 301px !important;}
.at-card--image-gen .at-card-media { top: 70px; max-width: 329px !important; }
.at-card--bg-remover .at-card-media { top: 64px; max-width: 353px !important; }
.at-card--enhancer .at-card-media { top: 72px; max-width: 368px !important;}

/* Try Now button (hidden in normal state) */
.at-card-btn {
  position: absolute;
  left: 50%;
  bottom: var(--at-btn-bottom, 25px);
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 136px;
  height: 45px;
  padding: 10px 30px;
  border: 0;
  border-radius: 10px;
  background: #0069FF !important;
  box-shadow: 0px 4px 6px -4px #0069FF33, 0px 10px 15px -3px #0069FF33 !important;
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 16px;
  line-height: 100%;
  color: #fff !important;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}

.at-card-btn:hover {
  background: #005FE5 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ---------- hovered state (mouse hover or keyboard focus) ---------- */
.at-card:hover .at-card-panel,
.at-card:focus-within .at-card-panel {
  padding-top: var(--at-hover-pt);
}

.at-card:hover .at-card-media,
.at-card:focus-within .at-card-media {
  transform: translateX(-50%) translateY(var(--at-img-shift)) scale(.93);
}

.at-card:hover .at-card-btn,
.at-card:focus-within .at-card-btn {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .at-card-media, .at-card-panel, .at-card-btn { transition: none !important; }
}

/* ================= AI TOOLS : "Design to AI Video" CARD ================= */
.at-card.at-card--ai-video {
  --at-hover-pt: 154px;
  --at-img-shift: -26px;
}

@media (max-width: 991.98px) {
  .at-card.at-card--ai-video {
    --at-hover-pt: 148px;
    --at-img-shift: -18px;
  }
}

@media (max-width: 575.98px) {
  .at-card.at-card--ai-video {
    --at-hover-pt: 138px;
    --at-img-shift: -12px;
  }
}

/* Composition wrapper = card box, fixed aspect ratio so % tops scale with width */
.at-card--ai-video .at-card-media.at-media-video {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 380 / 330;
  display: block;
  transform: none;
  transform-origin: top center;
  pointer-events: none;
  transition: transform .35s ease;
}

.at-media-video > * {
  position: absolute;
  display: block;
}

/* Left flyer (includes sparkle + dotted arrow) */
.at-media-video img.at-vid-flyer {
  left: 8.3%;
  top: 29.2%;
  width: 43.4%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* Video frame (132 x 234.78 in Figma design) */
.at-media-video .at-vid-frame {
  --vid-rot: 2.5deg;
  left: 53.4%;
  top: 16.7%;
  width: 34.7%;
  aspect-ratio: 132 / 234.78;
  border-radius: 6px;
  overflow: hidden;
  background: #D9DEE8;
  transform: rotate(var(--vid-rot));
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  z-index: 2;
}

.at-media-video .at-vid-thumb,
.at-media-video .at-vid-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.at-media-video .at-vid-thumb {
  transform: rotate(-2.26deg) scale(1.08);
  transform-origin: center center;
}

/* Video sits on top of thumbnail and fades in once it is playing */
.at-media-video .at-vid-video {
  opacity: 0;
  transition: opacity .4s ease;
}

.at-media-video .at-vid-video.is-playing {
  opacity: 1;
}

/* Play corner icon */
.at-media-video .at-vid-play {
  position: absolute;
  top: 3.4%;
  right: 6%;
  width: 15%;
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

/* Likes / reactions group */
.at-media-video img.at-vid-likes {
  left: 81.5%;
  top: 54.4%;
  height: auto;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

/* Hovered state: artwork moves up and scales slightly, keeping title clear of the video */
.at-card.at-card--ai-video:hover .at-media-video,
.at-card.at-card--ai-video:focus-within .at-media-video {
  transform: translateY(var(--at-img-shift)) scale(.93) !important;
}

@media (prefers-reduced-motion: reduce) {
  .at-media-video .at-vid-video {
    transition: none;
  }
}

/* ================= AI TOOLS : TOUCH / MOBILE FIX =================
   On touch devices (no hover), keep artwork and text in their normal
   positions and make the panel taller so the always-visible "Try Now"
   button fits cleanly without overlapping the title or description. */
@media (hover: none) {
  .at-carousel-track .at-card .at-card-media {
    transform: translateX(-50%) !important;
  }
  .at-carousel-track .at-card.at-card--ai-video .at-card-media.at-media-video {
    transform: none !important;
  }
  .at-carousel-track .at-card .at-card-panel {
    padding-top: 202px !important;
    height: 365px !important;
  }
  .at-carousel-track .at-card .at-card-btn {
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
    pointer-events: auto !important;
  }
}

@media (hover: none) and (max-width: 991.98px) {
  .at-carousel-track .at-card .at-card-panel {
    padding-top: 200px !important;
    height: 350px !important;
  }
}

@media (hover: none) and (max-width: 575.98px) {
  .at-carousel-track .at-card .at-card-panel {
    padding-top: 195px !important;
    height: 336px !important;
  }
}

.at-card-body {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.at-card-title {
  font-family: "Montserrat-Bold", sans-serif;
  font-size: 17px;
  line-height: 120%;
  letter-spacing: 0;
  color: #151515;
  margin: 0;
  text-align: center;
}

.at-card-desc {
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: #575D68;
  max-width: 254px;
  margin: 10px auto 0;
  text-align: center !important;
}

.at-nav-btn {
  position: absolute;
  top: calc(24px + 120px + 160px);
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0px 3px 10px 0px #00000040;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s ease, visibility .2s ease, box-shadow .2s ease;
}

.at-nav-btn svg path {
  stroke: #9A9A9A;
  transition: stroke .2s ease;
}

.at-nav-btn:hover {
  box-shadow: 0px 4px 14px 0px #0069FF40;
}

.at-nav-btn:hover svg path {
  stroke: #0069FF;
}

.at-nav-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.at-nav-prev { left: 8px; }
.at-nav-next { right: 8px; }

@media (max-width: 1199.98px) {
  .at-heading {
    font-size: 38px;
    letter-spacing: -1.2px;
  }
  .at-subheading,
  .at-subheading.fm-subheading {
    font-size: 17px !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .at-carousel-shell {
    margin-top: 26px;
  }
  .at-carousel-track {
    gap: 24px;
  }
}

@media (max-width: 991.98px) {
  .ai-tools-section {
    padding: 0 0 135px 0;
  }
  .at-heading {
    font-size: 32px;
    letter-spacing: -1px;
    text-align: center !important;
  }
  .at-subheading,
  .at-subheading.fm-subheading {
    font-size: 16px !important;
    white-space: normal !important;
    line-height: 140%;
    max-width: 560px;
    padding: 0 12px;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .at-carousel-shell {
    margin-top: 24px;
  }
  .at-carousel-track {
    gap: 20px;
    padding: 0px 40px 18px;
  }
  .at-card {
    --at-hover-pt: 145px;
    --at-btn-bottom: 18px;
    --at-img-shift: -16px;
    flex: 0 0 340px;
    width: 340px;
    padding-top: 100px;
  }
  .at-card-panel {
    width: 340px;
    height: 300px;
    padding: 200px 16px 20px;
  }

  .at-nav-btn {
    top: calc(20px + 100px + 150px);
  }
  .at-card--ai-video .at-card-media { max-width: 380px !important; }
  .at-card--image-gen .at-card-media { max-width: 328px !important; }
  .at-card--enhancer .at-card-media { max-width: 358px !important; }
}

@media (max-width: 767.98px) {
  .at-heading {
    font-size: 28px;
    letter-spacing: -0.8px;
    text-align: center !important;
  }
  .at-subheading,
  .at-subheading.fm-subheading {
    font-size: 15px !important;
    line-height: 21px;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 12px;
  }
}

@media (max-width: 575.98px) {
  .ai-tools-section {
    padding: 0 0 110px 0;
  }
  .at-heading {
    font-size: 26px;
    letter-spacing: -0.8px;
    text-align: center !important;
  }
  .at-subheading,
  .at-subheading.fm-subheading {
    font-size: 14px !important;
    line-height: 20px;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .at-carousel-shell {
    margin-top: 20px;
  }
  .at-carousel-track {
    gap: 16px;
    padding: 0px 36px 16px;
  }
  .at-card {
    --at-hover-pt: 136px;
    --at-btn-bottom: 14px;
    --at-img-shift: -14px;
    flex: 0 0 300px;
    width: 300px;
    padding-top: 88px;
  }
  .at-card-panel {
    width: 300px;
    height: 280px;
    padding: 195px 12px 16px;
  }
  .at-card-btn {
    width: 126px;
    height: 40px;
    font-size: 14px;
    padding: 8px 20px;
  }
  .at-card-title {
    font-size: 16px;
  }
  .at-card-desc {
    font-size: 13px;
    line-height: 18px;
  }
  .at-nav-btn {
    display: none;
  }
  .at-card--image-gen .at-card-media { max-width: 292px !important; }
  .at-card--ai-video .at-card-media { max-width: 325px !important; }
  .at-card--enhancer .at-card-media { max-width: 292px !important; }
}

@media (max-width: 500px) {
  .at-heading {
    font-size: 25px !important;
  }
  .at-subheading,
  .at-subheading.fm-subheading {
    font-size: 13.5px !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* Standardized CTA button styling */
.c-cta-btn,
.htuse-cta-btn {
  width: auto !important;
  min-width: 350px !important;
  padding: 10px 30px !important;
  box-shadow: 0px 10px 15px -3px #0069FF33 !important;
}

@media (max-width: 768px) {
  .c-cta-btn,
  .htuse-cta-btn {
    min-width: unset !important;
    min-height: unset !important;
    width: auto !important;
    padding: 7px 15px !important;
  }
}
