/* Category maker pages (catalog, brochure, magazine, …) */

body.pf-cm-page {
  background: #eef1f4;
}

body.pf-cm-page #page.page {
  background: #eef1f4;
  overflow: visible;
}

body.pf-cm-page .container-xxl {
  /* Same content width as /features and feature detail pages */
  width: 100%;
  max-width: 1320px;
}

.pf-cm-body {
  background: #f6f7f9;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.pf-cm-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--green, #0fbc49);
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pf-cm-title,
.pf-cm-h2 {
  margin: 0 0 0.85rem;
  font-family: var(--main-font, "Roboto", sans-serif);
  color: #111111;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.pf-cm-title {
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
}

.pf-cm-h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.pf-cm-lead,
.pf-cm-section-lead,
.pf-cm-card-desc,
.pf-cm-prose {
  font-family: var(--main-font, "Roboto", sans-serif);
  color: #3f4652;
  line-height: 1.6;
}

.pf-cm-lead {
  margin: 0 0 1.45rem;
  font-size: 1.08rem;
  max-width: 36rem;
}

.pf-cm-section-lead {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  max-width: 44rem;
}

.pf-cm-section-head--center {
  text-align: center;
}

.pf-cm-section-head--center .pf-cm-section-lead {
  margin-left: auto;
  margin-right: auto;
}

.pf-cm-card-title {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--main-font, "Roboto", sans-serif);
  color: #111111;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.pf-cm-card-desc {
  display: block;
  margin: 0;
  font-size: 0.94rem;
}

.pf-cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pf-cm-actions--center {
  justify-content: center;
  margin-top: 1.5rem;
}

.pf-cm-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.82rem;
  color: #6b7280;
}

.pf-cm-crumb a {
  color: #374151;
  text-decoration: none;
}

.pf-cm-crumb a:hover {
  color: var(--green, #0fbc49);
}

.pf-cm-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.7rem;
  border-radius: 12px;
  background: rgba(15, 188, 73, 0.1);
  color: var(--green, #0fbc49);
  font-size: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(15, 188, 73, 0.12);
}

/* —— Hero (standalone band) —— */
.pf-cm-hero {
  padding: 6.6rem 0 3.2rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 70% at 88% 8%, rgba(15, 188, 73, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 55% at 8% 0%, rgba(15, 188, 73, 0.07), transparent 50%),
    #ffffff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
}

.pf-cm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.pf-cm-hero-visual {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-cm-hero-book {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: min(100%, 34rem);
}

.pf-cm-hero-book--spread {
  width: min(100%, 38rem);
}

.pf-cm-hero-thumb {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(17, 24, 39, 0.18));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.pf-cm-hero-book:hover .pf-cm-hero-thumb,
.pf-cm-hero-book:focus-visible .pf-cm-hero-thumb {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 26px 42px rgba(17, 24, 39, 0.24));
}

.pf-cm-hero-book:focus-visible {
  outline: 2px solid var(--green, #0fbc49);
  outline-offset: 8px;
  border-radius: 0.6rem;
}

.pf-cm-pulse {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 4.35rem;
  height: 4.35rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pf-cm-pulse-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green, #0fbc49);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(15, 188, 73, 0.38);
}

.pf-cm-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(15, 188, 73, 0.45);
  animation: pf-cm-ring 2.1s ease-out infinite;
}

.pf-cm-pulse-ring--delay {
  animation-delay: 1.05s;
}

@keyframes pf-cm-ring {
  0% {
    transform: scale(0.78);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.pf-cm-pulse-label {
  position: absolute;
  left: 50%;
  top: calc(46% + 3.15rem);
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.pf-cm-prose {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.pf-cm-prose--after-how {
  padding-top: 2.75rem;
}

.pf-cm-prose--tight p {
  margin: 0;
  font-size: 1.02rem;
}

.pf-cm-prose a {
  color: var(--green, #0fbc49);
  font-weight: 650;
  text-decoration: none;
}

h3.pf-faq-q {
  margin: 0;
}

.pf-cm-prose a:hover {
  text-decoration: underline;
}

/* —— Sell / showcase —— */
.pf-cm-sell {
  padding: 3.4rem 0 3.5rem;
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, rgba(15, 188, 73, 0.08), transparent 55%),
    #ffffff;
}

.pf-cm-sell .pf-cm-section-head {
  margin-bottom: 1.85rem;
}

.pf-cm-sell-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pf-cm-sell-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.1rem 1.35rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: #f8faf9;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.pf-cm-sell-box .pf-cm-ico {
  margin-bottom: 0.85rem;
}

.pf-cm-prose--after-sell {
  margin-top: 1.75rem;
}

/* —— Embed —— */
.pf-cm-embed-wrap {
  padding: 1.5rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(15, 188, 73, 0.08), transparent 55%),
    #eef1f4;
}

.pf-cm-embed-host {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.08),
    0 22px 48px rgba(17, 24, 39, 0.16);
}

.pf-cm-embed {
  width: 100%;
  height: min(78vh, 760px);
  min-height: 420px;
}

.pf-cm-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #111827;
}

.pf-cm-embed-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.7rem 0.85rem;
  background: #161d2a;
}

.pf-cm-fs-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  background: var(--green, #0fbc49);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.pf-cm-fs-btn:hover {
  background: #0da340;
}

.pf-cm-embed-host.pf-cm-fs-on {
  position: fixed;
  inset: 0;
  z-index: 10050;
  border-radius: 0;
  height: 100%;
}

.pf-cm-embed-host.pf-cm-fs-on .pf-cm-embed {
  height: calc(100% - 52px);
  min-height: 0;
}

body.pf-cm-fs-lock {
  overflow: hidden;
}

/* —— Tools / benefits —— */
.pf-cm-tools,
.pf-cm-benefits,
.pf-cm-reasons {
  padding: 3.6rem 0 3.8rem;
}

.pf-cm-tools {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(15, 188, 73, 0.07), transparent 55%),
    #ffffff;
}

.pf-cm-tool-tabs-wrap {
  margin: 0 0 1.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pf-cm-tool-tabs-wrap::-webkit-scrollbar {
  display: none;
  height: 0;
}

.pf-cm-tool-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.15rem;
  min-width: min-content;
  margin: 0;
  padding: 0 0.15rem;
  overflow: visible;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.pf-cm-tool-tab {
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0 0 -1px;
  padding: 0.7rem 0.85rem 0.8rem;
  color: #4b5563;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.pf-cm-tool-tab:hover {
  color: #111111;
}

.pf-cm-tool-tab.is-active,
.pf-cm-tool-tab[aria-selected="true"] {
  color: var(--green, #0fbc49);
  border-bottom-color: var(--green, #0fbc49);
}

.pf-cm-tool-panel {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
}

.pf-cm-tool-panel.is-active {
  display: grid;
}

.pf-cm-tool-heading {
  margin: 0 0 0.75rem;
  font-family: var(--main-font, "Roboto", sans-serif);
  color: #111111;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.pf-cm-tool-more {
  margin: 0;
}

.pf-cm-tool-more a {
  color: var(--green, #0fbc49);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pf-cm-tool-visual {
  border-radius: 18px;
  overflow: hidden;
  background: #eef2f5;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
}

.pf-cm-tool-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.pf-cm-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pf-cm-benefit {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.55rem 1.2rem 1.4rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.pf-cm-benefits {
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(15, 188, 73, 0.07), transparent 50%),
    #f6f7f9;
}

.pf-cm-benefit-num {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  color: rgba(15, 188, 73, 0.28);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* —— Reasons —— */
.pf-cm-reasons {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 70% at 88% 20%, rgba(15, 188, 73, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 50% at 8% 90%, rgba(15, 188, 73, 0.12), transparent 50%),
    linear-gradient(165deg, #101826 0%, #163028 48%, #111827 100%);
}

.pf-cm-reasons .pf-cm-h2,
.pf-cm-reasons .pf-cm-card-title {
  color: #fff;
}

.pf-cm-reasons .pf-cm-section-lead,
.pf-cm-reasons .pf-cm-card-desc {
  color: #c5ccd6;
}

.pf-cm-reasons .pf-cm-eyebrow {
  color: #63e1c1;
}

.pf-cm-reasons-top {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.2rem 2.8rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.pf-cm-reasons-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.7rem;
  min-height: 22rem;
}

.pf-cm-mosaic-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.pf-cm-mosaic-item--wide {
  grid-row: 1 / span 2;
}

.pf-cm-mosaic-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-cm-reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pf-cm-reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.pf-cm-reason-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--green, #0fbc49);
  color: #fff;
  font-size: 0.72rem;
}

/* —— FAQ / related —— */
.pf-cm-faq {
  background: #fff;
}

.pf-cm-related {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.1rem;
  margin-top: 1.75rem;
}

.pf-cm-related a {
  color: var(--green, #0fbc49);
  font-weight: 650;
  text-decoration: none;
}

.pf-cm-related a:hover {
  text-decoration: underline;
}

/* —— Lightbox —— */
body.pf-cm-page .library-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(10, 14, 20, 0.82);
}

body.pf-cm-page .library-modal.show {
  display: block;
}

body.pf-cm-page .library-modal-content {
  position: absolute;
  inset: 3.5rem 2.5rem 2.5rem;
  background: #0b1016;
  border-radius: 12px;
  overflow: hidden;
}

body.pf-cm-page .library-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

body.pf-cm-page .library-modal-back {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

html.pf-cm-modal-open,
html.pf-cm-modal-open body {
  overflow: hidden;
}

@media (max-width: 991px) {
  .pf-cm-hero-grid,
  .pf-cm-reasons-top,
  .pf-cm-benefit-grid,
  .pf-cm-reason-list,
  .pf-cm-tool-panel.is-active {
    grid-template-columns: 1fr;
  }

  .pf-cm-sell-boxes {
    grid-template-columns: 1fr 1fr;
  }

  .pf-cm-hero {
    padding-top: 5.6rem;
  }

  .pf-cm-hero-visual {
    min-height: 16rem;
    order: -1;
  }

  .pf-cm-hero-book,
  .pf-cm-hero-book--spread {
    width: min(100%, 28rem);
  }

  .pf-cm-tool-tabs {
    justify-content: flex-start;
  }

  .pf-cm-reasons-mosaic {
    min-height: 16rem;
    grid-template-columns: 1fr 1fr;
  }

  .pf-cm-mosaic-item--wide {
    grid-column: 1 / span 2;
    grid-row: auto;
    min-height: 12rem;
  }
}

@media (max-width: 640px) {
  .pf-cm-sell-boxes {
    grid-template-columns: 1fr;
  }

  .pf-cm-embed {
    height: 70vh;
    min-height: 320px;
  }

  .pf-cm-reasons-mosaic {
    grid-template-columns: 1fr;
  }

  .pf-cm-mosaic-item--wide {
    grid-column: auto;
  }

  body.pf-cm-page .library-modal-content {
    inset: 3.2rem 0.55rem 0.55rem;
  }
}
