/* ==========================================================================
   Product Pages — Shared styles
   Used across: User Research, AI-Powered Analysis, Data & Insights Repository,
   Additional Tools, Services, Platform, Our Community, Live Interviews
   Prefix: pp-  (Product Pages)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS custom properties (shared across product pages)
   -------------------------------------------------------------------------- */

:root {
  --vox-purple: #341C4C;
  --vox-lilac: #95569E;
  --vox-highlight-green: #58B999;
  --vox-warm-white: #FAFAFA;
  --vox-light-gray: #F3F4F6;
  --vox-cool-gray: #6B7280;
  --vox-charcoal: #1F2937;
  --vox-gray-200: #E0E0E0;
  --vox-white: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Orphan and widow prevention
   -------------------------------------------------------------------------- */

.pp-hero__title,
.pp-transition__title,
.pp-feature__title,
.pp-doors__title,
.pp-bottom-cta__title,
.pp-testimonial__quote,
.pp-stats__text,
.pp-eyebrow,
.pp-platform-summary__title {
  text-wrap: balance;
}

.pp-hero__body,
.pp-feature__body,
.pp-testimonial__cite {
  text-wrap: balance;
}

.pp-feature__bullet,
.pp-door__text {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Global heading overrides
   application.css uses .mainContent h1 (0-1-1) — two-class selectors win.
   -------------------------------------------------------------------------- */

.pp-hero .pp-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 1.5rem;
}

.pp-transition .pp-transition__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.pp-feature .pp-feature__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.pp-doors .pp-doors__title {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.pp-doors .pp-door__title {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.pp-product-card .pp-product-card__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.pp-platform-summary .pp-platform-summary__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.pp-testimonial .pp-testimonial__quote {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.pp-bottom-cta .pp-bottom-cta__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Shared CTA buttons
   -------------------------------------------------------------------------- */

.pp-btn {
  display: inline-block;
  background: var(--vox-highlight-green);
  color: var(--vox-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.pp-btn:hover {
  background: #4aa085;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 185, 153, 0.3);
  color: var(--vox-white);
}

.pp-btn--text {
  color: var(--vox-purple);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}

.pp-btn--text:hover {
  color: var(--vox-lilac);
}

/* --------------------------------------------------------------------------
   Eyebrow label
   -------------------------------------------------------------------------- */

.pp-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vox-lilac);
  margin-bottom: 1rem;
}

.pp-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--vox-white);
  border: 1px solid var(--vox-gray-200);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--vox-purple);
  margin-bottom: 1.25rem;
}

.pp-eyebrow-pill svg {
  color: var(--vox-lilac);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.pp-hero {
  position: relative;
  overflow: hidden;
  background: var(--vox-warm-white);
  padding: 7rem 0 5rem;
}

.pp-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pp-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
}

.pp-hero__body {
  font-size: clamp(1.05rem, 1.5vw, 1.175rem);
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0 0 2.5rem;
}

.pp-hero__ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pp-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-hero__media video,
.pp-hero__media img {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pp-hero {
    padding: 4rem 0 3rem;
  }

  .pp-hero .container {
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
  }

  .pp-hero__media img {
    max-width: 110%;
    width: 110%;
  }
}

@media (max-width: 767px) {
  .pp-hero {
    padding: 5rem 0 3.5rem;
  }
  .pp-hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pp-hero__content {
    max-width: 100%;
    text-align: center;
  }
  .pp-hero__body {
    margin-left: auto;
    margin-right: auto;
    max-width: 36rem;
  }
  .pp-hero__ctas {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Three front doors
   -------------------------------------------------------------------------- */

.pp-doors {
  background: var(--vox-white);
  padding: 5rem 0 6rem;
}

.pp-doors__header {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 3.5rem;
}

.pp-doors__title {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.pp-doors__subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0;
}

.pp-doors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2rem;
  row-gap: 0;
}

.pp-door {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  background: var(--vox-white);
  border: 1px solid var(--vox-gray-200);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  transition: all 0.3s ease;
}

.pp-door:hover {
  border-color: var(--vox-lilac);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(149, 86, 158, 0.1);
}

.pp-door__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vox-lilac);
  margin-bottom: 0.75rem;
}

.pp-door__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.pp-door__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0 0 1.25rem;
}

.pp-door__cta {
  margin-top: auto;
  color: var(--vox-purple);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}

.pp-door__cta:hover {
  color: var(--vox-lilac);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pp-doors {
    padding: 3.5rem 0 4rem;
  }

  .pp-doors__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;
  }

  .pp-door {
    padding: 1.25rem 1rem;
  }

  .pp-door__label {
    font-size: 0.5625rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
  }

  .pp-door__title {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
    text-wrap: balance;
  }

  .pp-door__text {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .pp-door__cta {
    font-size: 0.75rem;
  }
}

@media (max-width: 767px) {
  .pp-doors__grid {
    grid-template-columns: 1fr;
    max-width: 32rem;
    margin: 0 auto;
    column-gap: 0;
    row-gap: 0;
  }
  .pp-door {
    margin-bottom: 1.5rem;
  }
  .pp-door:last-child {
    margin-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Transition header (centered text divider)
   -------------------------------------------------------------------------- */

.pp-transition {
  background: var(--vox-light-gray);
  padding: 5rem 0;
  text-align: center;
}

.pp-transition .container {
  max-width: 52rem;
}

.pp-transition__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

.pp-transition__subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0;
}

/* Alternate style: no bg for some pages */
.pp-transition--white {
  background: var(--vox-white);
}

.pp-transition--warm {
  background: var(--vox-warm-white);
}

/* --------------------------------------------------------------------------
   Feature section (two-column split: content + media)
   -------------------------------------------------------------------------- */

.pp-feature {
  padding: 5rem 0;
}

.pp-feature--white {
  background: var(--vox-white);
}

.pp-feature--gray {
  background: var(--vox-light-gray);
}

.pp-feature--warm {
  background: var(--vox-warm-white);
}

.pp-feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pp-feature__content {
  max-width: 32rem;
}

.pp-feature__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.pp-feature__body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0 0 1.75rem;
}

.pp-feature__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.pp-feature__bullets li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--vox-charcoal);
}

.pp-feature__bullets li:last-child {
  margin-bottom: 0;
}

.pp-feature__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95569e;
}

.pp-feature__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-feature__media img,
.pp-feature__media video {
  width: 85%;
  height: auto;
}

.pp-feature__media img {
  mix-blend-mode: multiply;
}

.pp-feature__media video {
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(52, 28, 76, 0.25);
}

.pp-feature__placeholder {
  background: var(--vox-light-gray);
  border: 2px dashed var(--vox-gray-200);
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  color: var(--vox-cool-gray);
  font-size: 0.9375rem;
  font-weight: 500;
  font-style: italic;
  text-align: center;
  padding: 1.5rem;
}

/* Alternate layout: warm feature sections flip media to the left */
.pp-feature--warm .pp-feature__media {
  order: -1;
}

@media (max-width: 860px) {
  .pp-feature .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pp-feature__content {
    max-width: 100%;
  }
  .pp-feature--warm .pp-feature__media {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */

.pp-testimonial {
  background: var(--vox-purple);
  padding: 5rem 0;
}

.pp-testimonial .container {
  max-width: 52rem;
}

.pp-testimonial__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.pp-testimonial__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--vox-lilac);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vox-white);
  font-size: 0.75rem;
  font-style: italic;
  overflow: hidden;
}

.pp-testimonial__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-testimonial__content {
  flex: 1;
}

.pp-testimonial__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vox-highlight-green);
  margin-bottom: 1rem;
}

.pp-testimonial__quote {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--vox-white);
  margin: 0 0 1.25rem;
  font-weight: 500;
  position: relative;
}

.pp-testimonial__quote::before {
  content: '\201C';
  font-size: 3rem;
  font-weight: 800;
  color: var(--vox-lilac);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.pp-testimonial__cite {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.pp-testimonial__cite strong {
  display: block;
  color: var(--vox-white);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

@media (max-width: 767px) {
  .pp-testimonial__inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Bottom CTA
   -------------------------------------------------------------------------- */

.pp-bottom-cta {
  background: var(--vox-warm-white);
  padding: 5rem 0;
  text-align: center;
}

.pp-bottom-cta .container {
  max-width: 52rem;
}

.pp-bottom-cta__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
}

.pp-bottom-cta__body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0 0 2rem;
}

/* --------------------------------------------------------------------------
   Platform summary (centered text block, used on community/platform pages)
   -------------------------------------------------------------------------- */

.pp-platform-summary {
  background: var(--vox-light-gray);
  padding: 5rem 0;
  text-align: center;
}

.pp-platform-summary .container {
  max-width: 52rem;
}

.pp-platform-summary__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

.pp-platform-summary__subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Video embed section
   -------------------------------------------------------------------------- */

.pp-video-embed {
  background: var(--vox-white);
  padding: 4rem 0;
  text-align: center;
}

.pp-video-embed__player {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.pp-video-embed__player video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(52, 28, 76, 0.25);
}

.pp-video-embed__body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  max-width: 36rem;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Product card grid (platform overview page)
   -------------------------------------------------------------------------- */

.pp-product-card {
  padding: 5rem 0;
}

.pp-product-card--white {
  background: var(--vox-white);
}

.pp-product-card--gray {
  background: var(--vox-light-gray);
}

.pp-product-card--warm {
  background: var(--vox-warm-white);
}

.pp-product-card .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pp-product-card__content {
  max-width: 32rem;
}

.pp-product-card__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--vox-purple);
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.pp-product-card__body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--vox-cool-gray);
  margin: 0 0 1.75rem;
}

.pp-product-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.pp-product-card__bullets li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--vox-charcoal);
}

.pp-product-card__bullets li:last-child {
  margin-bottom: 0;
}

.pp-product-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95569e;
}

.pp-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-product-card__media img {
  width: 85%;
  height: auto;
}

/* Alternate layout: gray product card sections flip media to the left */
.pp-product-card--gray .pp-product-card__media {
  order: -1;
}

@media (max-width: 860px) {
  .pp-product-card .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pp-product-card__content {
    max-width: 100%;
  }
  .pp-product-card--gray .pp-product-card__media {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .pp-door,
  .pp-btn {
    transition: none;
  }
  .pp-door:hover,
  .pp-btn:hover {
    transform: none;
  }
}
