/* ==========================================================================
   Product Pages - CSS Styles for 360 Assessment Product Pages
   Extends the Retail Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   Product Hero Section
   -------------------------------------------------------------------------- */
.product-hero {
  position: relative;
  background-color: var(--retail-primary-dark);
  color: white;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(0, 51, 102, 0.9) 0%,
    rgba(0, 26, 51, 0.95) 60%,
    rgba(0, 13, 26, 1) 100%
  );
  z-index: 1;
}

.product-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--retail-container-padding);
  text-align: center;
}

.product-hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--retail-accent-light);
  margin-bottom: 0.75rem;
}

.product-hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .product-hero-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .product-hero-title {
    font-size: 3.25rem;
  }
}

.product-hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .product-hero-description {
    font-size: 1.25rem;
  }
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Light outline button for hero section */
.retail-btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.retail-btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

/* --------------------------------------------------------------------------
   Product Content Container
   -------------------------------------------------------------------------- */
.product-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--retail-container-padding);
}

/* --------------------------------------------------------------------------
   Product Section Base Styles
   -------------------------------------------------------------------------- */
.product-section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .product-section {
    padding: 5rem 0;
  }
}

.product-section-alt {
  background-color: var(--retail-gray-50);
}

.product-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--retail-gray-900);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--retail-primary);
  display: inline-block;
}

@media (min-width: 768px) {
  .product-section-title {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Benefits & Resources Section (Two Column Layout)
   -------------------------------------------------------------------------- */
.product-benefits-section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .product-benefits-section {
    padding: 5rem 0;
  }
}

.product-benefits-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .product-benefits-grid {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
  }
}

/* Resources Sidebar */
.product-resources-sidebar {
  order: -1;
}

@media (min-width: 1024px) {
  .product-resources-sidebar {
    order: 1;
  }
}

.product-resources-card {
  background-color: var(--retail-primary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-resources-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.product-resources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-resources-list li {
  margin-bottom: 0.75rem;
}

.product-resources-list li:last-child {
  margin-bottom: 0;
}

.product-resources-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}

.product-resources-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.product-resources-link img {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) invert(1);
}

.product-screenshot {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 51, 102, 0.1), 0 4px 6px -2px rgba(0, 51, 102, 0.05);
}

.product-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Benefits Content */
.product-benefits-content {
  order: 1;
}

@media (min-width: 1024px) {
  .product-benefits-content {
    order: -1;
  }
}

.product-benefit-item {
  margin-bottom: 1.25rem;
}

.product-benefit-item:last-child {
  margin-bottom: 0;
}

.product-benefit-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--retail-gray-700);
  margin: 0;
}

.product-benefit-label {
  font-weight: 600;
  color: var(--retail-primary);
}

/* --------------------------------------------------------------------------
   Features Table
   -------------------------------------------------------------------------- */
.product-features-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 51, 102, 0.1), 0 2px 4px -1px rgba(0, 51, 102, 0.06);
}

.product-features-table th,
.product-features-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--retail-gray-200);
}

.product-features-table th {
  background-color: var(--retail-gray-50);
  font-weight: 600;
  color: var(--retail-gray-900);
  width: 200px;
  vertical-align: top;
}

.product-features-table td {
  color: var(--retail-gray-700);
}

.product-features-table tr:last-child th,
.product-features-table tr:last-child td {
  border-bottom: none;
}

.product-features-table .flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-features-table .flags img {
  height: 1rem;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Competencies Section
   -------------------------------------------------------------------------- */
.product-competencies-section {
  padding: 4rem 0;
  background-color: var(--retail-gray-50);
}

@media (min-width: 1024px) {
  .product-competencies-section {
    padding: 5rem 0;
  }
}

.product-competencies-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .product-competencies-grid {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }
}

.product-competencies-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-competencies-content {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-competencies-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-competencies-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-competency-group {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 51, 102, 0.1), 0 2px 4px -1px rgba(0, 51, 102, 0.06);
}

.product-competency-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--retail-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--retail-gray-200);
}

.product-competency-item {
  margin-bottom: 1rem;
}

.product-competency-item:last-child {
  margin-bottom: 0;
}

.product-competency-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--retail-primary);
  margin-bottom: 0.25rem;
}

.product-competency-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--retail-gray-600);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.product-pricing-section {
  padding: 4rem 0;
  background-color: white;
}

@media (min-width: 1024px) {
  .product-pricing-section {
    padding: 5rem 0;
  }
}

.product-pricing-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--retail-gray-700);
  margin: 0;
}

.product-pricing-content a {
  color: var(--retail-primary);
  font-weight: 500;
  text-decoration: none;
}

.product-pricing-content a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   How to Start Section
   -------------------------------------------------------------------------- */
.product-start-section {
  padding: 4rem 0;
  background-color: var(--retail-gray-50);
}

@media (min-width: 1024px) {
  .product-start-section {
    padding: 5rem 0;
  }
}

.product-start-content {
  max-width: 800px;
}

.product-start-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--retail-gray-700);
  margin-bottom: 1rem;
}

.product-start-content p:last-child {
  margin-bottom: 0;
}

.product-start-content a {
  color: var(--retail-primary);
  font-weight: 500;
  text-decoration: none;
}

.product-start-content a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.product-cta-section {
  padding: 4rem 0;
  background-color: var(--retail-primary-dark);
  color: white;
}

@media (min-width: 1024px) {
  .product-cta-section {
    padding: 5rem 0;
  }
}

.product-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.product-cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .product-cta-title {
    font-size: 2.25rem;
  }
}

.product-cta-body {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Whitepaper CTA Styles (within dark section)
   -------------------------------------------------------------------------- */
.product-cta-section .container {
  max-width: 80rem;
  margin: 0 auto;
}

.product-cta-section .text-blue-600 {
  color: var(--retail-accent-light);
}

.product-cta-section .text-gray-900 {
  color: white;
}

.product-cta-section .text-gray-700 {
  color: rgba(255, 255, 255, 0.85);
}

.product-cta-section .bg-white {
  background-color: rgba(255, 255, 255, 0.1);
}

.product-cta-section .shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.product-cta-section .border-gray-300 {
  border-color: rgba(255, 255, 255, 0.3);
}

.product-cta-section input {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.product-cta-section input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.product-cta-section .bg-blue-600 {
  background-color: var(--retail-accent);
}

.product-cta-section .hover\:bg-blue-700:hover {
  background-color: var(--retail-accent-dark);
}
