/* Campaign 2 — Carrier Fee Exposure Report Styles */
/* Companion to shared-styles.css */
/* 800px document-width layout for personalized reports */

/* === REPORT LAYOUT === */
.report-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Override shared header to match report width */
.report-page .header-inner {
  max-width: 800px;
}

/* Report sections get tighter vertical rhythm than marketing pages */
.report-section {
  padding: 48px 0;
}

.report-section-compact {
  padding: 24px 0;
}

/* === REPORT ID BAR === */
.report-id {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* === REPORT SUMMARY CARD === */
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 48px 48px 0;
  margin-top: 16px;
}

.report-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.report-big-number-wrapper {
  text-align: center;
  padding: 8px 0 24px;
}

.report-big-number-prefix {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.report-big-number {
  font-size: 60px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.report-big-number .dollar-sign {
  font-size: 0.6em;
  vertical-align: baseline;
}

.report-big-number .per-year {
  font-size: 0.28em;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0;
  vertical-align: baseline;
}

.report-prepared-for {
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.report-disclosure {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Card footer metrics */
.report-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  margin: 0 -48px;
}

.report-card-metric {
  text-align: center;
  padding: 24px 16px;
}

.report-card-metric:not(:last-child) {
  border-right: 1px solid var(--border);
}

.report-card-metric-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.report-card-metric-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

/* === EXPOSURE BREAKDOWN TABLE === */
.exposure-table-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.exposure-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.exposure-table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.exposure-table thead th:nth-child(3),
.exposure-table thead th:nth-child(4) {
  text-align: right;
}

.exposure-table tbody td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.exposure-table tbody td:nth-child(3),
.exposure-table tbody td:nth-child(4) {
  text-align: right;
}

/* Calculation column — subtle by default, clear on hover */
.exposure-table .calc-col {
  font-size: 13px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  transition: opacity var(--transition-fast);
  opacity: 0.6;
}

.exposure-table tbody tr:hover .calc-col {
  opacity: 1;
}

/* Amount cells with inline bar */
.exposure-table .amount-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.inline-bar {
  width: 60px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.inline-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  opacity: 0.5;
}

/* Total row */
.exposure-table .total-row td {
  border-top: 2px solid var(--text-primary);
  border-bottom: none;
  font-weight: 600;
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
}

.exposure-table .total-row td:first-child {
  border-left: 3px solid var(--primary);
}

.exposure-table .total-row .annual-total {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

/* Total row background reveal */
.exposure-table .total-row.revealed td {
  background: var(--primary-light);
  transition: background 400ms ease;
}

/* === SCROLL REVEAL ANIMATION === */
.reveal-row {
  opacity: 0;
  transform: translateY(8px);
}

.reveal-row.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 350ms ease, transform 350ms ease;
}

/* === METHODOLOGY FOOTNOTE === */
.methodology-note {
  border-top: 1px solid var(--border);
  padding: 16px 0 0;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* === BUSINESS IMPACT CALLOUT === */
.impact-callout {
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.impact-callout strong {
  color: var(--text-primary);
}

.impact-callout .carrier-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* === COMPARISON TABLE === */
.comparison-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.comparison-report-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.comparison-report-table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-report-table thead th:nth-child(2),
.comparison-report-table thead th:nth-child(3) {
  text-align: right;
}

.comparison-report-table tbody td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.comparison-report-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-report-table tbody td:nth-child(2),
.comparison-report-table tbody td:nth-child(3) {
  text-align: right;
}

/* Two-tone column tinting */
.comparison-report-table .col-without {
  background: rgba(220, 38, 38, 0.04);
  color: var(--text-primary);
}

.comparison-report-table .col-with {
  background: rgba(22, 163, 74, 0.04);
  color: var(--text-primary);
}

.comparison-report-table .savings-value {
  color: var(--primary);
  font-weight: 700;
}

.comparison-report-table .roi-value {
  font-weight: 700;
  color: #2E7D32;
  font-size: 15px;
}

/* Testimonial embedded in comparison */
.comparison-testimonial {
  padding: 24px 24px 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.comparison-testimonial .attribution {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

.comparison-testimonial .case-study-link {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.comparison-testimonial .case-study-link:hover {
  color: var(--primary-hover);
}

/* === CTA BLOCK === */
.report-cta {
  background: var(--bg-hero);
  color: var(--text-inverse);
  text-align: center;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.report-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-hero-mesh);
  pointer-events: none;
}

.report-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.report-cta h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.report-cta .cta-subtext {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 28px;
  line-height: 1.6;
}

.report-cta .btn-white {
  padding: 14px 36px;
  font-size: 16px;
}

.report-cta .secondary-cta {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.report-cta .secondary-cta a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-cta .secondary-cta a:hover {
  color: #ffffff;
}

.report-cta .trust-line {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.report-cta .trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.report-cta .trust-badge {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === REPORT FOOTER === */
.report-footer {
  background: var(--text-primary);
  color: #94a3b8;
  padding: 32px 24px;
}

.report-footer .footer-inner {
  max-width: 800px;
}

.report-footer .footer-bottom {
  border-top: none;
  padding-top: 0;
}

/* === STICKY MOBILE CTA === */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.sticky-cta-bar.visible {
  transform: translateY(0);
}

.sticky-cta-bar .btn-primary {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

/* === SECTION HEADING (report-specific) === */
.report-section-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* === RESPONSIVE — TABLET (768-1024px) === */
@media (max-width: 1024px) {
  .report-card {
    padding: 40px 32px 0;
  }

  .report-card-metrics {
    margin: 0 -32px;
  }

  .exposure-table .calc-col {
    display: none;
  }

  /* Show calc on tap — handled by JS adding class */
  .exposure-table tbody tr.show-calc .calc-col {
    display: table-cell;
  }
}

/* === RESPONSIVE — MOBILE (<768px) === */
@media (max-width: 767px) {
  .report-content {
    padding: 0 16px;
  }

  .report-card {
    padding: 28px 20px 0;
    border-radius: var(--radius-md);
  }

  .report-card-metrics {
    margin: 0 -20px;
    grid-template-columns: 1fr;
  }

  .report-card-metric {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }

  .report-card-metric:last-child {
    border-bottom: none;
  }

  .report-big-number {
    font-size: 40px;
  }

  .report-prepared-for {
    font-size: 15px;
  }

  /* Exposure table → stacked cards on mobile */
  .exposure-table-wrapper {
    box-shadow: none;
    background: transparent;
  }

  .exposure-table,
  .exposure-table thead,
  .exposure-table tbody,
  .exposure-table th,
  .exposure-table td,
  .exposure-table tr {
    display: block;
  }

  .exposure-table thead {
    display: none;
  }

  .exposure-table tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 8px;
  }

  .exposure-table tbody td {
    border-bottom: none;
    padding: 4px 0;
    text-align: left !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .exposure-table tbody td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-right: 12px;
  }

  .exposure-table tbody td:first-child {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
  }

  .exposure-table tbody td:first-child::before {
    display: none;
  }

  .exposure-table .calc-col {
    display: none;
  }

  .exposure-table .amount-cell {
    justify-content: flex-end;
  }

  .inline-bar {
    display: none;
  }

  .exposure-table .total-row td {
    border-top: none;
  }

  .exposure-table .total-row td:first-child {
    border-left: none;
  }

  .exposure-table .total-row {
    background: var(--primary-light) !important;
    border-color: var(--primary);
  }

  /* Comparison table → stacked cards on mobile */
  .comparison-wrapper {
    box-shadow: none;
    background: transparent;
  }

  .comparison-report-table,
  .comparison-report-table thead,
  .comparison-report-table tbody,
  .comparison-report-table th,
  .comparison-report-table td,
  .comparison-report-table tr {
    display: block;
  }

  .comparison-report-table thead {
    display: none;
  }

  .comparison-mobile-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
  }

  .comparison-mobile-card-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .comparison-mobile-card.without-ag .comparison-mobile-card-header {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
  }

  .comparison-mobile-card.with-ag .comparison-mobile-card-header {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
  }

  .comparison-mobile-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .comparison-mobile-item:last-child {
    border-bottom: none;
  }

  .comparison-mobile-label {
    color: var(--text-secondary);
  }

  .comparison-mobile-value {
    font-weight: 600;
    color: var(--text-primary);
  }

  /* Sticky CTA */
  .sticky-cta-bar {
    display: block;
  }

  /* CTA block */
  .report-cta {
    padding: 48px 20px;
    /* Add bottom padding for sticky bar */
    padding-bottom: 80px;
  }

  .report-cta h2 {
    font-size: 24px;
  }

  .report-cta .btn-white {
    width: 100%;
    min-height: 52px;
  }

  .report-cta .trust-badges {
    gap: 8px;
  }

  .impact-callout {
    padding: 16px 20px;
    font-size: 14px;
  }

  .report-section-heading {
    font-size: 20px;
  }
}

/* === PRINT STYLES === */
@media print {
  .site-header,
  .sticky-cta-bar,
  .report-cta,
  .inline-bar {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }

  .report-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .exposure-table-wrapper,
  .comparison-wrapper {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .exposure-table .calc-col {
    opacity: 1;
  }

  .reveal-row {
    opacity: 1 !important;
    transform: none !important;
  }

  .report-big-number {
    color: black;
  }

  a {
    color: black;
    text-decoration: none;
  }

  .report-footer {
    background: white;
    color: #333;
    border-top: 1px solid #ccc;
  }
}
