/*
 * File: icpreview.css
 * Description: ICP Buying Motion Review-specific styles.
 * Load after app-base.css and before printreport.css.
 */

/* ICP Review header and report identity */
.print-logo { 
  display: none;
}

.report-title {
    margin: 0;
    font-size: 1rem;
    color: var(--text-title);
    font-weight: 500;
}

.report-name {
    font-size:1.5rem;
}


/* Results hero variant */
.results-hero {
  padding-block: clamp(2rem, 3vw, 2.75rem);
}

/* Results Hero Box Variant (Single Column Centered / Left Stack) */
.hero-box-results {
  max-width: 52rem; /* Keep text lines comfortable to read */
}

.hero-box-results h1 {
  color: var(--feature-heading);
}


/* ICP Review landing hero grid */
/* Landing Page 2-Column Hero Grid Split */
@media (min-width: 48rem) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: clamp(2.5rem, 4vw, 4rem);
    align-items: center;
  }
}


/* ICP Review landing page */
/* ==========================================================================
   7. PAGE-SPECIFIC Components (Only if a page needs something unique)
      7.1 index.html
      7.2 results.html
========================================================================== */

/* 7.1 index.html ======================================================== */

.what-header {
  max-width: 68rem;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.why-title,
.what-title,
.faq-title,
.form-title {
  max-width: 68rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: pretty;
}

.why-title,
.what-title {
  color: var(--brand-off-black);
}

.faq-title {
  color: var(--brand-secondary);
}

.form-title {
  color: var(--brand-primary);
}


/* Why Section (#why) - Matches full site-container width */
.why-section {
  width: 100%;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background-color: var(--bg-card);
  border-block: 1px solid var(--brand-border);
}

.why-content {
  width: 100%; /* Changed from max-width: 56rem to match full container width */
}

@media (prefers-color-scheme: dark) {
  .why-title {
    color: var(--text-heading);
  }
}

.why-body p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.why-body p:last-child {
  margin-bottom: 0;
}

/* What Section (#what) */
.what-section {
  width: 100%;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background-color: var(--bg-page);
}

.what-header {
  max-width: 58rem;
  margin: 0 auto 3rem auto;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .what-title {
    color: var(--text-heading);
  }
}

.what-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 0;
}

/* 3-Card Grid Layout */
.what-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .what-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.what-card {
  background-color: var(--bg-card);
  border: 1px solid var(--brand-border);
  border-radius: 0.85rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.what-card h3 {
  min-height: 2.5em;
}
.what-card-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--brand-primary);
  margin-bottom: 1.75rem;
}

@media (prefers-color-scheme: dark) {
  .what-card-title {
    color: var(--text-heading);
  }
}

.what-card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 0;
}

/* FAQ Accordion Section (#faq) */
.faq-section {
  width: 100%;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background-color: var(--brand-primary);
}

.faq-list {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Base Accordion Item */
.faq-list details {
  background-color: var(--brand-off-black);
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
}

/* Accordion Summary / Header */
.faq-list summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-off-white);
  cursor: pointer;
  list-style: none; /* Hides default triangle in Firefox */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

/* Remove default marker icon across Chrome/Safari */
.faq-list summary::-webkit-details-marker {
  display: none;
}

/* Custom Down Arrow Icon */
.faq-list summary::after {
  content: '';
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--brand-off-white);
  border-bottom: 2px solid var(--brand-off-white);
  transform: rotate(45deg);
  transition: transform 0.25s ease-in-out;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

/* Chevron Rotation when Details is Open */
.faq-list details[open] summary::after {
  transform: rotate(-135deg);
}

/* Expanded Answer Container */
.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #E2E8F0; /* Soft off-white for body text readability */
  font-size: 1.05rem;
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* Dark Mode Alignment (Maintains High Contrast) */
@media (prefers-color-scheme: dark) {
  .faq-list details {
    background-color: #1A202C; /* Deep grey-black contrast against dark primary background */
  }
}

/* Form introduction is intentionally narrower than the shared default. */
.form-header {
  max-width: 48rem;
}

@media (prefers-color-scheme: dark) {
  .form-title {
    color: var(--text-heading);
  }
}

/* ICP Review results page */
/* 7.2 results.html ====================================================== */

/* REPORT ACTIONS & PRINT STYLING */
.report-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -0.5rem; /* Tighter pull toward the first card */
}

.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-print:hover {
  background-color: var(--brand-off-white);
  border-color: var(--brand-primary);
}

.print-icon {
  width: 16px;
  height: 16px;
}

/* REPORT CARDS & SECTIONS (Fixed Full-Width Stack) */
/* Main Container: Forces children to stretch to full container width */
.report-container {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Prevents cards from collapsing to fit content */
  width: 100%;
  gap: 1.5rem;
  margin-block: 2.5rem;
}

/* Outer Parent Cards */
.report-card {
  width: 100%; /* Ensures all 3 cards are identical full width */
  box-sizing: border-box;
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* Header Banner inside Report Cards */
.report-card .card-header {
  padding: 1.25rem 1.75rem;
  background-color: var(--feature-bg);
  border-bottom: 1px solid var(--border-color);
  text-align: left; /* Explicitly forces header text to the left */
}

.report-card .card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--feature-text);
  text-align: left;
}

/* Body Padding for Report Cards */
.report-card .card-body {
  padding: 1rem;
  background-color: var(--bg-card);
  text-align: left;
}

.report-card .card-body p {
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.report-card .card-body p:last-child {
  margin-bottom: 0;
}

/* NESTED OPPORTUNITY CARDS (Dynamically Generated via JS) */
#opportunities-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Individual Opportunity Sub-Cards */
.opportunity-card {
  background-color: var(--bg-nested-card);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--feature-heading);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.opportunity-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--feature-heading);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.opportunity-observation,
.opportunity-business-implication,
.opportunity-recommendation {
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--brand-off-black);
}

.opportunity-card p:last-child {
  margin-bottom: 0;
}

.opportunity-card strong {
  color: var(--feature-heading);
  font-weight: 700;
}

/* REPORT HEADER (Print) */
.report-header {
    display: none;
}

.report-header h1 {
    margin-bottom: 0.75rem;
}

.report-metadata {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--brand-border);
}

.report-metadata p {
    margin: 0.25rem 0;
}

.print-booking {
    display: none;
}

