/**
 * Product Page Styles
 * ====================
 * Matches React /free page exactly.
 * Uses DesignBase color variables and 1000px breakpoint.
 */

/* =============================================================================
   PAGE CONTAINER
   ============================================================================= */

.product-page {
  margin: 0 auto;
}

/* =============================================================================
   HERO SECTION - Matches React /free hero exactly
   React: 64px/72px white headline, 20px/24px primary-200 description
   ============================================================================= */

/* Hero headline - Light theme: primary-600, Dark theme: white */
.product-hero__headline {
  width: 100%;
  color: var(--color-primary-600);
  font-size: 64px;
  font-weight: 900;
  line-height: 72px;
  text-align: center;
  max-width: 800px;
  margin: 0;
}

.product-hero__headline--dark {
  color: var(--color-white);
}

/* Hero description - Light theme: primary-600, Dark theme: primary-200 */
.product-hero__description {
  line-height: 24px;
  color: var(--color-primary-600);
  font-size: 20px;
  max-width: 480px;
  text-align: center;
}

.product-hero__description--dark {
  color: var(--color-primary-200);
}

/* Hero disclaimer - Light theme: neutral-600, Dark theme: primary-800 */
.product-hero__disclaimer {
  line-height: 12px;
  color: var(--color-neutral-600);
  font-size: 12px;
  max-width: 480px;
  text-align: center;
}

.product-hero__disclaimer--dark {
  color: var(--color-white);
  opacity: 0.6;
}

/* Hero SVG icon - React: 160x160px */
.product-page svg {
  width: 160px;
  height: 160px;
}

/* =============================================================================
   SECTION TITLES - Matches React FeatureBlock
   React: 56px/64px desktop, 48px/56px mobile, weight 900
   ============================================================================= */

.product-section__title {
  width: 100%;
  color: var(--color-primary-600);
  font-size: 56px;
  font-weight: 900;
  line-height: 64px;
  text-align: center;
  max-width: 800px;
  margin: 0;
}

.product-section__title--dark {
  color: var(--color-white);
}

.product-section__description {
  line-height: 28px;
  font-weight: 400;
  color: var(--color-primary-600);
  font-size: 20px;
  max-width: 640px;
  text-align: center;
}

.product-section__description--dark {
  color: var(--color-primary-200);
}

/* =============================================================================
   COMPARISON TABLE - Matches React Comparison component
   ============================================================================= */

/* Comparison table wrapper - rounded corners with scrolling support */
.product-comparison-table-wrapper {
  width: 100%;
  overflow: hidden;
  overflow-x: auto;
  border-radius: 24px;
  background: var(--color-white, #ffffff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-comparison-table-wrapper--dark {
  background: linear-gradient(125deg, rgba(16, 162, 103, 0.25) 0%, rgba(16, 162, 103, 0.25) 100%), var(--color-primary-900);
  box-shadow: none;
}

/* Native HTML comparison table */
.product-comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.product-comparison__th {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-neutral-100, rgba(0, 0, 0, 0.1));
  vertical-align: top;
}

.product-comparison-table-wrapper--dark .product-comparison__th {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.product-comparison__th--left {
  color: var(--color-primary-500);
}

.product-comparison-table-wrapper--dark .product-comparison__th--left {
  color: var(--color-white);
}

.product-comparison__td {
  padding: 0;
  border-bottom: 1px solid var(--color-neutral-100, rgba(0, 0, 0, 0.1));
  vertical-align: middle;
}

.product-comparison-table-wrapper--dark .product-comparison__td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.product-comparison-table tbody tr:last-child .product-comparison__td {
  border-bottom: none;
}

.product-comparison__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: calc(var(--size-unit) * 4) calc(var(--size-unit) * 6);
}

.product-comparison__header--primary {
  color: var(--color-primary-500);
}

.product-comparison__header-text {
  display: flex;
  flex-direction: column;
}

.product-comparison__header h4 {
  line-height: 28px;
  margin: 0;
}

.product-comparison__subtitle {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  opacity: 0.7;
}

.product-comparison__cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0 calc(var(--size-unit) * 6);
}

.product-comparison__cell-text {
  line-height: 48px;
  opacity: 1;
}

.product-comparison-table-wrapper--dark .product-comparison__cell-text {
  color: var(--color-white);
}

/* =============================================================================
   FEATURE ITEMS - Matches React FeatureBlockItem
   React: icon 64px, text 20px/24px desktop, 16px/24px mobile
   ============================================================================= */

.product-feature__label {
  font-size: 20px;
  line-height: 24px;
  color: var(--color-primary-600);
  text-align: center;
  white-space: nowrap;
}

.product-feature__label--dark {
  color: var(--color-primary-200);
}

/* =============================================================================
   BOTTOM CTA - Matches React BottomCTA component exactly
   React: title 56px/64px weight 900, description 20px/24px opacity 0.75
   ============================================================================= */

/* Bottom CTA title - React: 56px/64px weight 900, white on dark background */
.product-page .bottom-cta__title {
  color: var(--color-white);
  font-size: 56px;
  font-weight: 900;
  line-height: 64px;
  text-align: center;
  margin: 0;
}

/* Bottom CTA description - React: 20px/24px opacity 0.75, white on dark background */
.product-page .bottom-cta__description {
  line-height: 24px;
  color: var(--color-white);
  font-size: 20px;
  opacity: 0.75;
  text-align: center;
  max-width: 640px;
  margin-bottom: 0;
}

/* Bottom CTA section item descriptions - primary-100 text on dark background */
.product-page op-website-section-item {
  --op-website-section-item-description-color: var(--color-primary-100);
  --color-primary-300: var(--color-primary-100);
}
.product-page op-website-section-item::part(description) {
  color: var(--color-primary-100) !important;
}
.product-page op-website-section-item span {
  color: var(--color-primary-100) !important;
}

/* =============================================================================
   MOBILE RESPONSIVE - 1000px breakpoint (matches React PageWrapper)
   ============================================================================= */

@media (max-width: 1000px) {
  /* Hero headline */
  .product-hero__headline {
    font-size: 36px;
    line-height: 44px;
  }

  /* Hero description */
  .product-hero__description {
    font-size: 16px;
    line-height: 22px;
  }

  /* Hero SVG icon */
  .product-page svg {
    width: 100px;
    height: 100px;
  }

  /* Hero disclaimer */
  .product-hero__disclaimer {
    font-size: 11px;
    line-height: 14px;
  }

  /* Section titles - React: 48px/56px mobile */
  .product-section__title {
    font-size: 48px;
    line-height: 56px;
  }

  .product-section__description {
    font-size: 16px;
    line-height: 24px;
  }

  /* Comparison table - mobile */
  .product-comparison-table-wrapper {
    border-radius: 16px;
  }

  .product-comparison__th {
    padding: 12px 12px;
  }

  /* Comparison header text - smaller on mobile */
  .product-comparison__header {
    padding: calc(var(--size-unit) * 3) calc(var(--size-unit) * 3);
  }

  .product-comparison__header h4,
  .product-comparison__header-text h4 {
    font-size: 13px;
    line-height: 17px;
  }

  .product-comparison__subtitle {
    font-size: 11px;
    line-height: 14px;
  }

  /* Comparison cell - smaller on mobile, icon aligns to top of wrapping text */
  .product-comparison__cell {
    padding: 8px 12px;
    align-items: flex-start;
  }

  .product-comparison__cell op-icon {
    margin-top: 2px;
    flex-shrink: 0;
  }

  .product-comparison__cell-text {
    font-size: 13px;
    line-height: 18px;
  }

  /* Feature items - column layout on mobile */
  .product-feature-items {
    flex-direction: column !important;
  }

  /* Feature label */
  .product-feature__label {
    font-size: 16px;
    line-height: 24px;
  }

  /* Bottom CTA - mobile */
  .product-page .bottom-cta__title {
    font-size: 36px;
    line-height: 44px;
  }

  .product-page .bottom-cta__description {
    font-size: 16px;
    line-height: 22px;
  }
}
