/* Self-service catalog product page — compact hero + interactive showcase */

.pub-catalog-hero {
  --cat-purple: #6b31df;
  --cat-purple-soft: #8b5cf6;
  position: relative;
  overflow: hidden;
  padding: calc(var(--pub-nav-height, 104px) + 20px) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(ellipse 65% 55% at 90% 0%, rgba(107, 49, 223, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 40% at 5% 30%, rgba(34, 211, 238, 0.1), transparent 52%),
    linear-gradient(180deg, #0a101c 0%, #070b14 100%);
}

.pub-catalog-hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pub-catalog-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.pub-catalog-hero__orb--a {
  width: min(420px, 50vw);
  height: min(420px, 50vw);
  top: -12%;
  right: 8%;
  background: rgba(139, 92, 246, 0.35);
}

.pub-catalog-hero__orb--b {
  width: min(320px, 40vw);
  height: min(320px, 40vw);
  bottom: -18%;
  left: -4%;
  background: rgba(34, 211, 238, 0.2);
}

.pub-catalog-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.pub-catalog-hero__copy .pub-eyebrow {
  color: #c4b5fd;
}

.pub-catalog-hero h1 {
  margin: 0.55rem 0 0.85rem;
  font-family: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #f8fafc;
}

.pub-catalog-hero__lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
}

.pub-catalog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pub-catalog-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pub-catalog-hero__stats li {
  display: grid;
  gap: 0.1rem;
  min-width: 7.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.pub-catalog-hero__stats strong {
  font-size: 0.92rem;
  color: #f8fafc;
}

.pub-catalog-hero__stats span {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.65);
}

/* Compact device frame — image cropped, not full-bleed */
.pub-catalog-device {
  max-width: 520px;
  margin-left: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow:
    0 24px 48px -24px rgba(0, 0, 0, 0.7),
    0 0 36px rgba(107, 49, 223, 0.2);
  transform: perspective(1100px) rotateY(-6deg) rotateX(3deg);
}

.pub-catalog-device__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.pub-catalog-device__chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.pub-catalog-device__chrome span:nth-child(1) { background: #f87171; }
.pub-catalog-device__chrome span:nth-child(2) { background: #fbbf24; }
.pub-catalog-device__chrome span:nth-child(3) { background: #34d399; }

.pub-catalog-device__chrome em {
  margin-left: 0.5rem;
  font-style: normal;
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.pub-catalog-device__viewport {
  height: clamp(200px, 28vw, 260px);
  overflow: hidden;
  background: #f4f2f8;
}

.pub-catalog-device__viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Showcase board */
.pub-catalog-showcase {
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(107, 49, 223, 0.08), transparent 55%),
    #070b14;
}

.pub-catalog-showcase__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.pub-catalog-showcase__head {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.pub-catalog-showcase__head h2 {
  margin: 0.35rem 0 0.65rem;
  font-family: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc !important;
}

.pub-catalog-showcase__head p {
  margin: 0;
  color: rgba(241, 245, 249, 0.92) !important;
  line-height: 1.55;
  font-size: 1.02rem;
}

.pub-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.55rem;
  margin: 0 auto 1.5rem;
  max-width: 920px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.pub-catalog-filters button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: #1e293b !important;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.pub-catalog-filters button:hover {
  color: #6b31df !important;
}

.pub-catalog-filters button.is-active {
  background: #6b31df;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(107, 49, 223, 0.35);
}

/* Beat cinematic light-text overrides on white catalog cards */
.pub-page--cinematic .pub-catalog-card h3 {
  color: #0f172a !important;
}

.pub-page--cinematic .pub-catalog-card > p {
  color: #334155 !important;
}

.pub-page--cinematic .pub-catalog-pill {
  color: #334155 !important;
}

.pub-page--cinematic .pub-catalog-card__cta {
  color: #fff !important;
}

.pub-page--cinematic .pub-catalog-filters button {
  color: #1e293b !important;
}

.pub-page--cinematic .pub-catalog-filters button.is-active {
  color: #fff !important;
}

.pub-catalog-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pub-catalog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.1rem 1rem;
  border-radius: 16px;
  background: #fff;
  border-top: 4px solid #6b31df;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.pub-catalog-card.is-dim {
  opacity: 0.28;
  transform: scale(0.98);
  pointer-events: none;
}

.pub-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
}

.pub-catalog-card__top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.pub-catalog-card__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.pub-catalog-card__ico svg {
  width: 20px;
  height: 20px;
}

.pub-catalog-card__ico--blue { background: #dbeafe; color: #2563eb; }
.pub-catalog-card__ico--green { background: #d1fae5; color: #059669; }
.pub-catalog-card__ico--violet { background: #ede9fe; color: #7c3aed; }
.pub-catalog-card__ico--orange { background: #ffedd5; color: #ea580c; }
.pub-catalog-card__ico--pink { background: #fce7f3; color: #db2777; }
.pub-catalog-card__ico--teal { background: #ccfbf1; color: #0d9488; }

.pub-catalog-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}

.pub-catalog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.pub-catalog-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.pub-catalog-tag--pop {
  background: #ede9fe;
  color: #5b21b6 !important;
}

.pub-catalog-tag--apr {
  background: #ffedd5;
  color: #9a3412 !important;
}

.pub-catalog-card > p {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #475569 !important;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.pub-catalog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pub-catalog-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155 !important;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.pub-catalog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff !important;
  background: #6b31df;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
}

.pub-catalog-card__cta svg {
  width: 14px;
  height: 14px;
}

/* Contained product shot under cards */
.pub-catalog-shot {
  margin: 2rem auto 0;
  max-width: 760px;
  text-align: center;
}

.pub-catalog-shot__frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: #f4f2f8;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  max-height: 280px;
}

.pub-catalog-shot__frame img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
}

.pub-catalog-shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.7);
}

@media (max-width: 960px) {
  .pub-catalog-hero__grid {
    grid-template-columns: 1fr;
  }

  .pub-catalog-device {
    margin: 0 auto;
    transform: none;
    max-width: 440px;
  }

  .pub-catalog-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pub-catalog-filters {
    border-radius: 18px;
    justify-content: flex-start;
  }

  .pub-catalog-cards {
    grid-template-columns: 1fr;
  }
}
