/**
 * Product detail pages — structured sections (cards, flow, feature grids).
 */
.product-details-section .content-one.product-intro .sub-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-details-section .content-one.product-intro h2 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-intro__lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 52rem;
}

.product-section__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

/* Problems — card grid */
.product-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-problem-card {
  background: var(--surface-page);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 14px 34px rgba(52, 138, 220, 0.18);
}

.product-problem-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.product-problem-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 0.5rem;
}

.product-problem-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

/* Process flow — aligned timeline (desktop grid, mobile stack) */
.product-details-section ol.product-flow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 0;
}

.product-flow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem 1.25rem;
  counter-reset: product-flow;
}

.product-flow-track > .product-flow-step {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.product-flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  margin: 0;
}

/* Remove broken horizontal pseudo-connectors */
.product-flow-step::after {
  display: none !important;
  content: none !important;
}

.product-flow-step__node {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
  box-shadow: 0 4px 14px rgba(52, 138, 220, 0.35);
}

.product-flow-step__body {
  width: 100%;
  max-width: 280px;
}

.product-flow-step__body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 0.35rem;
}

.product-flow-step__body p,
.product-flow-step__text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

/* Feature / reports / experience grids */
.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}

.product-feature-card {
  border-radius: 12px;
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-100);
}

.product-feature-card--features {
  border-left: 4px solid var(--primary);
  background: var(--surface-page);
}

.product-feature-card--reports {
  border-left: 4px solid var(--accent-cyan);
  background: color-mix(in srgb, var(--accent-cyan) 6%, var(--surface-page));
}

.product-feature-card--experience {
  border-left: 4px solid var(--accent-green);
  background: color-mix(in srgb, var(--accent-green) 6%, var(--surface-page));
}

.product-feature-card--default {
  background: var(--surface-page);
}

.product-feature-card h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 0.45rem;
}

.product-feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.product-card--body-only p,
.product-problem-card.product-card--body-only p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.product-card--body-only h4,
.product-feature-card.product-card--body-only h4 {
  display: none;
}

.product-problem-card.product-card--body-only {
  padding-top: 1.35rem;
}

.product-problem-card.product-card--body-only .product-problem-card__index {
  margin-bottom: 0.65rem;
}

.product-summary-callout {
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 8%, var(--neutral-100));
  border: 1px solid var(--neutral-200);
}

.product-summary-callout p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.65;
}

/* CTA bar */
.product-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.product-cta-bar .theme-btn-one--secondary {
  background: var(--secondary);
}

.product-cta-bar .theme-btn-one--secondary:hover {
  background: color-mix(in srgb, var(--secondary) 88%, var(--primary));
}

.product-cta-bar .theme-btn-one--ghost {
  background: var(--surface-page) !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 16px rgba(52, 138, 220, 0.12);
}

.product-cta-bar .theme-btn-one--ghost::before {
  display: none;
}

.product-cta-bar .theme-btn-one--ghost:hover {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-page)) !important;
  color: var(--primary) !important;
}

.product-demo-btn[href="#demo-login-placeholder"] {
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .product-flow-track {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 36rem;
  }

  .product-flow-step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.15rem;
    align-items: start;
    text-align: left;
    padding: 0 0 1.5rem 0;
  }

  .product-flow-step__node {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: center;
    margin-bottom: 0;
  }

  .product-flow-step__node::after {
    display: none !important;
  }

  .product-flow-step__body {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: none;
    align-self: center;
  }

  .product-flow-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: 2.75rem;
    bottom: 0;
    width: 2px;
    background: color-mix(in srgb, var(--primary) 22%, var(--neutral-200));
    transform: translateX(-50%);
    z-index: 0;
  }
}

@media (max-width: 767.98px) {
  .product-cta-bar .theme-btn-one {
    width: 100%;
    text-align: center;
  }
}
