/* ========================================
   Report Page Styles
   ======================================== */

/* --- Report Hero --- */
.report__hero {
  position: relative;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: calc(var(--nav-height) + var(--space-4xl)) var(--space-2xl) var(--space-4xl);
  text-align: center;
  margin: var(--card-padding);
  border-radius: var(--radius-md);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report__hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.report__hero-logo {
  height: 32px;
  width: auto;
  margin: 0 auto var(--space-xl);
  opacity: 0.4;
  filter: brightness(0) invert(1);
}

.report__byline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-md);
}

.report__pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent-orange);
  color: var(--color-text-light);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
}

.report__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.report__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.report__hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.report__hero-stat {
  text-align: center;
}

.report__hero-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--color-accent-orange);
  line-height: 1.2;
}

.report__hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* --- Report Preview (always visible) --- */
.report__preview {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.report__preview-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.report__toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.report__toc-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 15px;
  line-height: 1.5;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
}

.report__toc-num {
  font-weight: 700;
  color: var(--color-accent-orange);
  flex-shrink: 0;
  min-width: 24px;
}

/* --- Gate Section (email capture) --- */
.report__gate {
  max-width: 520px;
  margin: 0 auto var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--color-bg-dark);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-text-light);
}

.report__gate.hidden {
  display: none;
}

.report__gate-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.report__gate-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-xl);
}

.report__gate-form {
  display: flex;
  gap: var(--space-xs);
}

.report__gate-input {
  flex: 1;
  font-family: var(--font-primary);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-light);
  outline: none;
  transition: border-color 0.2s ease;
}

.report__gate-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.report__gate-input:focus {
  border-color: var(--color-accent-orange);
}

.report__gate-btn {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent-orange);
  color: var(--color-text-light);
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.report__gate-btn:hover {
  opacity: 0.9;
}

.report__gate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.report__gate-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-sm);
}

.report__gate-error {
  font-size: 13px;
  color: #ff6b6b;
  margin-top: var(--space-xs);
  display: none;
}

/* --- Gated Content --- */
.report__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
  position: relative;
}

.report__content.locked {
  max-height: 200px;
  overflow: hidden;
}

.report__content.locked::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.report__content.unlocked {
  max-height: none;
  overflow: visible;
  animation: reportReveal 0.6s ease forwards;
}

.report__content.unlocked::after {
  display: none;
}

@keyframes reportReveal {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* --- Report Section Blocks --- */
.report__section {
  margin-bottom: var(--space-3xl);
}

.report__section-num {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-orange);
  margin-bottom: var(--space-xs);
}

.report__section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  color: var(--color-text-dark);
}

.report__section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted-dark);
  margin-bottom: var(--space-md);
}

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

/* --- Data Tables --- */
.report__table-wrap {
  overflow-x: auto;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
}

.report__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.report__table thead {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.report__table th {
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report__table td {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border-light);
}

.report__table tbody tr:nth-child(even) {
  background: var(--color-bg-card);
}

.report__table .highlight {
  color: var(--color-accent-orange);
  font-weight: 600;
}

/* --- CSS Bar Charts --- */
.report__chart {
  margin: var(--space-lg) 0;
}

.report__chart-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.report__chart-label {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.report__chart-bar-wrap {
  height: 28px;
  background: var(--color-bg-card);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.report__chart-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.report__chart-bar--traditional {
  background: var(--color-bg-dark);
}

.report__chart-bar--ai {
  background: var(--color-accent-orange);
}

.report__chart-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted-dark);
}

.report__chart-legend {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
  justify-content: center;
}

.report__chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted-dark);
}

.report__chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* --- Stat Callouts --- */
.report__stat {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  margin: var(--space-lg) 0;
}

.report__stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  color: var(--color-accent-orange);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.report__stat-label {
  font-size: 15px;
  color: var(--color-text-muted-dark);
}

/* --- Decision Matrix --- */
.report__matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-padding);
  margin: var(--space-lg) 0;
}

.report__matrix-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

.report__matrix-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}

.report__matrix-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted-dark);
  margin-bottom: var(--space-xs);
}

.report__matrix-best {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-orange);
  margin-top: var(--space-sm);
}

/* --- Report CTA --- */
.report__cta-section {
  background: var(--color-bg-dark);
  border-radius: var(--radius-md);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  color: var(--color-text-light);
  margin-top: var(--space-3xl);
}

.report__cta-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.report__cta-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-xl);
}

.report__cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Branding Dividers --- */
.report__branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.report__branding-logo {
  height: 20px;
  width: auto;
  opacity: 0.2;
  filter: brightness(0);
}

.report__branding-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted-dark);
}

/* --- Key Findings Grid --- */
.report__key-findings {
  margin-top: var(--space-xl);
}

.report__key-findings-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
}

.report__key-findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

/* --- Download Section --- */
.report__download {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  margin: var(--space-2xl) 0;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
}

.report__download-logo {
  height: 24px;
  width: auto;
  opacity: 0.2;
  filter: brightness(0);
  margin: 0 auto var(--space-lg);
}

.report__download-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text-dark);
}

.report__download-sub {
  font-size: 14px;
  color: var(--color-text-muted-dark);
  margin-bottom: var(--space-xl);
}

.report__download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.report__download-btn:hover {
  opacity: 0.9;
}

/* --- CTA Logo --- */
.report__cta-logo {
  height: 24px;
  width: auto;
  opacity: 0.3;
  filter: brightness(0) invert(1);
  margin: 0 auto var(--space-xl);
}

/* --- Report Header (absolute inside hero, transparent) --- */
.report-page .header {
  position: absolute;
  top: var(--card-padding);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.report-page .header .header__link {
  color: var(--color-text-light);
}

.report-page .header .header__link--login {
  color: var(--color-text-light);
}

.report-page .header .header__logo img {
  filter: none;
}

.report-page .header .header__menu-btn {
  color: var(--color-text-light);
}

/* --- Responsive --- */
@media (max-width: 810px) {
  .report__hero {
    min-height: 70vh;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  }

  .report__title {
    font-size: 32px;
  }

  .report__key-findings-grid {
    grid-template-columns: 1fr;
  }

  .report__hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .report__hero-stat-value {
    font-size: 28px;
  }

  .report__toc {
    grid-template-columns: 1fr;
  }

  .report__gate-form {
    flex-direction: column;
  }

  .report__chart-row {
    grid-template-columns: 100px 1fr 50px;
  }

  .report__chart-label {
    font-size: 12px;
  }

  .report__matrix {
    grid-template-columns: 1fr 1fr;
  }

  .report__stat-value {
    font-size: 36px;
  }

  .report__section-title {
    font-size: 24px;
  }

  .report__cta-title {
    font-size: 26px;
  }

  .report__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .report__matrix {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Print Styles (PDF Download)
   ======================================== */
@media print {
  /* Hide non-content elements */
  .header,
  .report__gate,
  .report__download,
  .footer,
  .page-transition,
  .report__cta-section {
    display: none !important;
  }

  /* Reset layout for print */
  body {
    background: white !important;
    color: #1a1a1a !important;
    font-size: 11pt;
  }

  .report__hero {
    min-height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 60pt 40pt !important;
    page-break-after: always;
    background: #1d1d1d !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report__hero-logo {
    height: 28pt;
    opacity: 0.5;
  }

  .report__preview {
    padding: 30pt 40pt;
    page-break-after: always;
  }

  .report__content {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 40pt 30pt;
  }

  .report__content.locked::after {
    display: none !important;
  }

  /* Each section starts on new page */
  .report__section {
    page-break-before: always;
    margin-bottom: 20pt;
    padding-top: 20pt;
  }

  /* First section doesn't need page break (follows preview) */
  .report__section:first-of-type {
    page-break-before: auto;
  }

  /* Branding dividers — show as page headers */
  .report__branding {
    border: none;
    padding: 10pt 0;
    margin-bottom: 10pt;
  }

  .report__branding-logo {
    height: 14pt;
    opacity: 0.3;
  }

  /* Tables: avoid breaking mid-row */
  .report__table-wrap {
    page-break-inside: avoid;
  }

  .report__table thead {
    background: #1d1d1d !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report__table tbody tr:nth-child(even) {
    background: #f5f5f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Stat callouts: keep together */
  .report__stat {
    page-break-inside: avoid;
    background: #f5f5f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Decision matrix: keep together */
  .report__matrix {
    page-break-inside: avoid;
  }

  /* Bar charts: keep together */
  .report__chart {
    page-break-inside: avoid;
  }

  /* Key findings grid */
  .report__key-findings-grid {
    page-break-inside: avoid;
  }

  /* Orange highlights in print */
  .report__table .highlight {
    color: #FF4100 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report__stat-value {
    color: #FF4100 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report__section-num {
    color: #FF4100 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report__toc-num {
    color: #FF4100 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Links: show URL in print */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }
}
