/* ============================================================
   NOWCOM — Inner Pages (Financials, CRM, AI, Insurance, Auto)
   ============================================================ */

/* ── Page Hero ── */
.inner-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 350px;
  overflow: hidden;
  padding-top: 0; /* header is fixed, main has padding-top: var(--nav-height) */
}

/* Light hero variant — background image on section, hero-left full width */
.inner-hero.hero-light {
  grid-template-columns: 1fr;
  align-items: center;
}
.inner-hero.hero-light .hero-left {
  background: transparent;
}
.inner-hero .container {
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

/* Dark hero variant (AI) */
.inner-hero.hero-dark {
  background: #0a0a0a;
  grid-template-columns: 1fr;
  min-height: 320px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.inner-hero.hero-dark .hero-left {
  padding: 80px var(--container-pad);
  max-width: 860px;
  background: transparent;
}
.inner-hero.hero-dark h1 { color: var(--color-white); }
.inner-hero.hero-dark .hero-subtitle { color: rgba(255,255,255,0.7); }
.inner-hero.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(27,79,202,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-left {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  max-width: 80%;
}

.hero-left h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 2.25vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: #000;
  max-width: 520px;
  line-height: 1.5;
}

.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 280px;
}
/* Gradient overlay blending hero photo into background */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #f6f6f6 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

/* ── Products intro ── */
.products-intro {
  text-align: center;
  padding: 64px var(--container-pad) 48px;
  max-width: max-content;
  margin: 0 auto;
}
.products-intro h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.2vw, 1.875rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
}
.products-intro p {
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: #1b1b1b;
  line-height: 1.875;
  margin: 0 auto;
  max-width: max-content;
}

/* ── Product rows ── */
.products-list {}

.product-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 36px;
  justify-content: center;
}
.product-row .container {
  display: flex;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.product-row.bg-alt { background: #f8f8f8; }

.product-screenshots {
  flex: 0 0 55%;
  width: 55%;
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main screenshot display */
.screenshot-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.screenshot-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Product logo badge */
.product-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  max-height: 50px;
}
.product-badge img {
  max-width: 100px;
  max-height: 36px;
  object-fit: contain;
}

.product-text {
  flex: 0 0 45%;
  width: 45%;
  min-width: 0;
}
.product-text h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.3;
}
.product-text p {
  font-family: var(--font-primary);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.875;
  color: #1b1b1b;
}
.product-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-text ul li {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: #1b1b1b;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.product-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.product-text ul.circle-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0984E3;
  top: 50%;
  transform: translateY(-50%);
  font-weight: normal;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .product-screenshots { width: 60%; flex-basis: 60%; }
}

@media (max-width: 1024px) {
  .inner-hero { grid-template-columns: 1fr; }
  .hero-right  { display: none; }
  .hero-left   { padding: 56px var(--container-pad); max-width: 100%; }

  .product-row {
    padding: 40px var(--container-pad);
  }
  .product-row .container {
    flex-direction: column;
    gap: 32px;
  }
  .product-row.reverse-mobile .container { flex-direction: column-reverse; }
  .product-screenshots {
    width: 100%;
    max-width: 100%;
    height: 260px;
  }
  .product-text { 
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .products-intro { padding: 48px var(--container-pad) 32px; }
  .product-screenshots { height: 220px; }
}

/* ── Video Player: desktop / mobile visibility ── */
.video-desktop-only {
  display: block;
  width: 100%;
  height: 100%;
}
.video-mobile-only {
  display: none;
}
.video-desktop-only .video-player-container,
.video-mobile-only  .video-player-container {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  .video-desktop-only {
    display: none;
  }
  .video-mobile-only {
    display: block;
    width: 100%;
  }
  .product-screenshots:has(.video-mobile-only) {
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: 480px;
  }
}
