/* Premium Templates page (/premium-templates/) and the shared template section on the
   PageBuilder and ClickCampaigns product pages. The galleries themselves are styled by
   premium-websites.css and premium-funnels.css (copied from ClickCampaigns). */

.pt-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 92px);
  background:
    radial-gradient(circle at 12% 0%, rgba(197, 176, 244, 0.55), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(243, 201, 182, 0.6), transparent 40%),
    var(--soft);
  text-align: center;
}

.pt-hero h1 {
  max-width: 16ch;
  margin: 18px auto 22px;
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.pt-hero h1 span { color: var(--coral-dark); }

.pt-hero > .site-wrap > p {
  max-width: 64ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.pt-hero .button-row { justify-content: center; margin-top: 30px; }

.pt-proof {
  display: grid;
  max-width: 860px;
  margin: clamp(40px, 5vw, 60px) auto 0;
  padding: 0;
  list-style: none;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pt-proof li {
  display: grid;
  gap: 2px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
}

.pt-proof strong { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.04em; }
.pt-proof span { color: var(--muted); font-size: 14px; }

.pt-kinds { padding: clamp(48px, 6vw, 84px) 0 0; }

.pt-kind-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pt-kind {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--lilac);
  color: var(--ink);
  text-decoration: none;
}

.pt-kind:nth-child(2) { background: var(--peach); }
.pt-kind:nth-child(3) { background: var(--mint); }
.pt-kind small { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pt-kind h3 { margin: 0; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.08; letter-spacing: -0.03em; }
.pt-kind p { margin: 0; color: rgba(5, 5, 5, 0.7); font-size: 16px; line-height: 1.5; }
.pt-kind > span { margin-top: auto; padding-top: 8px; font-weight: 800; }
.pt-kind > span i { display: inline-block; font-style: normal; transition: transform var(--motion-ui) var(--ease-out); }

@media (hover: hover) {
  .pt-kind { transition: transform var(--motion-ui) var(--ease-out); }
  .pt-kind:hover { transform: translateY(-4px); }
  .pt-kind:hover > span i { transform: translateX(4px); }
}

.pt-kinds-note { margin: 18px 0 0; color: var(--muted); font-size: 15px; text-align: center; }

/* The library band. */
.template-showcase.pt-library { margin-top: clamp(48px, 6vw, 84px); }
.template-showcase .eyebrow { justify-content: center; }
.template-showcase-cta .button { min-width: 240px; }

.pt-section-head {
  display: grid;
  align-items: start;
  gap: var(--editorial-gap);
  margin-bottom: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
}

.pt-section-head h2 { max-width: 15ch; margin-bottom: 0; font-size: clamp(38px, 5vw, 68px); }
.pt-section-head p { max-width: 55ch; margin-bottom: 0; color: var(--muted); font-size: 18px; }

.pt-use-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pt-use-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.pt-use-grid span { color: var(--coral-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pt-use-grid h3 { margin: 10px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.pt-use-grid p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.pt-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pt-steps li { padding: 28px; border-radius: var(--radius-lg); background: var(--soft); }
.pt-steps li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}
.pt-steps h3 { margin: 18px 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.pt-steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.pt-final {
  padding: clamp(76px, 10vw, 142px) 0;
  background: var(--coral);
  text-align: center;
}
.pt-final h2 { max-width: 14ch; margin: 0 auto 22px; font-size: clamp(48px, 6.6vw, 88px); }
.pt-final p { max-width: 62ch; margin: 0 auto; color: rgba(5, 5, 5, 0.7); font-size: 19px; }
.pt-final .button-row { justify-content: center; margin-top: 28px; }
.pt-final .eyebrow { justify-content: center; }

/* Shared section on the product pages. */
.pt-band { padding: clamp(64px, 8vw, 110px) 0; background: linear-gradient(180deg, #f8f6ff 0%, #f3f1fb 100%); }
.pt-band .pt-section-head { margin-bottom: 28px; }
.pt-band .pf-tabs { margin-bottom: 22px; }
.pt-band-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: 30px; }
.pt-band-foot a:not(.button) { color: var(--ink); font-weight: 800; }

@media (max-width: 900px) {
  .pt-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-kind-grid,
  .pt-use-grid,
  .pt-steps { grid-template-columns: 1fr; }
  .pt-section-head { grid-template-columns: 1fr; gap: 16px; }
}
