/* The listing template builder: the home page section and its own page. */

.wow .tb-section {
  background:
    radial-gradient(ellipse at 95% 0%, #7c3aed26, transparent 55%),
    radial-gradient(ellipse at 0% 100%, #2563eb1f, transparent 50%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.wow .tb-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.wow .tb-copy h2 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.06em;
  line-height: 1.04;
  margin: 0 0 24px;
}
.wow .tb-copy h2 > span {
  background: linear-gradient(92deg, #8fb2ff, #b69bff 55%, #f0a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wow .tb-copy > p {
  color: var(--ink2);
  line-height: 1.8;
  max-width: 34rem;
  margin: 0 0 26px;
}
.wow .tb-points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.wow .tb-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink2);
  line-height: 1.6;
}
.wow .tb-points svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}
.wow .tb-points b {
  color: var(--ink);
}
.wow .tb-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #3c4a33;
  background: #16231a;
  color: #9ee6b0;
  font-size: 0.8125rem;
  font-weight: 600;
}
.wow .tb-free::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}
.wow .tb-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Three designs fanned out, with the assistant over them. */
.wow .tb-fan {
  position: relative;
  height: 560px;
  margin: 0;
}
.wow .tb-fan img {
  position: absolute;
  top: 0;
  width: 58%;
  height: 520px;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 1px solid #ffffff1f;
  box-shadow: 0 40px 80px -30px #000c;
  background: #fff;
}
.wow .tb-fan img:nth-child(1) {
  left: 0;
  transform: rotate(-6deg) translateY(30px);
  opacity: 0.9;
}
.wow .tb-fan img:nth-child(2) {
  left: 21%;
  z-index: 2;
}
.wow .tb-fan img:nth-child(3) {
  right: 0;
  transform: rotate(6deg) translateY(30px);
  opacity: 0.9;
}
.wow .tb-ask {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #121725f2;
  border: 1px solid #3a3f6a;
  box-shadow: 0 30px 60px -20px #000d;
  backdrop-filter: blur(8px);
}
.wow .tb-ask-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b0f1a;
  border: 1px solid #2b3350;
  color: #e6e9f5;
  font-size: 0.9375rem;
}
.wow .tb-ask-line svg {
  flex: none;
  color: #b69bff;
}
.wow .tb-ask-line kbd {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(92deg, #2563eb, #7c3aed);
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.wow .tb-ask-done {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a7f3c0;
  font-size: 0.875rem;
}
.wow .tb-ask-done span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #14301f;
  color: #86efac;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The page's gallery of designs. */
.wow .tb-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.wow .tb-design {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.wow .tb-design-frame {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.wow .tb-design-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 5s linear;
}
.wow .tb-design:hover .tb-design-frame img {
  transform: translateY(calc(-100% + 340px));
}
.wow .tb-design figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.wow .tb-design figcaption small {
  color: var(--muted);
  font-weight: 400;
}
.wow .tb-count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.wow .tb-count div {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.wow .tb-count b {
  display: block;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.wow .tb-count span {
  color: var(--muted);
  font-size: 0.9rem;
}
.wow .tb-chat {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin: 36px auto 0;
}
.wow .tb-chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  text-align: left;
}
.wow .tb-chat-row small {
  margin-left: auto;
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wow .tb-chat-row small.free {
  background: #14301f;
  color: #86efac;
}
.wow .tb-chat-row small.ai {
  background: #2a1f4d;
  color: #c9b5ff;
}

@media (prefers-reduced-motion: reduce) {
  .wow .tb-design-frame img {
    transition: none;
  }
  .wow .tb-design:hover .tb-design-frame img {
    transform: none;
  }
}
@media (max-width: 1100px) {
  .wow .tb-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .wow .tb-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .wow .tb-fan {
    height: 460px;
  }
  .wow .tb-fan img {
    height: 420px;
  }
  .wow .tb-count {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .wow .tb-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .wow .tb-design-frame {
    height: 260px;
  }
  .wow .tb-fan {
    height: 400px;
  }
  .wow .tb-fan img {
    width: 70%;
    height: 340px;
  }
  .wow .tb-fan img:nth-child(1),
  .wow .tb-fan img:nth-child(3) {
    display: none;
  }
  .wow .tb-fan img:nth-child(2) {
    left: 15%;
  }
  .wow .tb-ask {
    left: 0;
    right: 0;
  }
}

/* The page's own hero: the same headline size as the other product pages. */
.wow.page-template-builder .pagehero .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.wow.page-template-builder .pagehero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}
@media (max-width: 1000px) {
  .wow.page-template-builder .pagehero .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
