/* =============================================================
   TransRisk v3 — why-transrisk.css
   Styles specific to why-transrisk.html
============================================================= */

/* ========================
   HERO
======================== */

.wtr-hero {
  position: relative;
  background: var(--color-navy);
  padding: 96px 40px 88px;
  text-align: center;
  overflow: hidden;
}

.wtr-hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.wtr-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.wtr-hero-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 760px;
  margin: 0;
}

.wtr-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: rgba(255,255,255,0.62);
  max-width: 600px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 720px) {
  .wtr-hero { padding: 72px 24px 64px; }
}


/* ========================
   SECTION 1 — DIFFERENTIATION (3 COLUMNS)
======================== */

.diff-section {
  background: #fff;
}

.diff-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.diff-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-green);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.diff-col:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.09);
  border-left-color: var(--color-green-light);
}

/* Override separator — cards are self-contained */
.diff-col + .diff-col {
  padding-left: 24px;
  border-left: 4px solid var(--color-green);
}

.diff-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 122, 58, 0.08);
  border-radius: var(--radius-lg);
  color: var(--color-green);
  flex-shrink: 0;
}

.diff-icon svg {
  width: 26px;
  height: 26px;
}

.diff-col-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
}

.diff-col-body {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 860px) {
  .diff-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 600px;
  }

  .diff-col + .diff-col {
    padding-left: 24px;
    border-top: none;
    border-left: 4px solid var(--color-green);
  }
}


/* ========================
   SECTION 2 — EXPANDED COMPARISON TABLE
======================== */

.wtr-comparison-section {
  background: var(--color-light);
}

.wtr-comp-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* 4-column widths */
.wtr-col-cap  { width: 30%; }
.wtr-col-ss   { width: 19%; }
.wtr-col-erp  { width: 24%; }
.wtr-col-tr   { width: 27%; }

/* Force wider min-width for 4 columns */
.wtr-comp-table {
  min-width: 760px;
}

/* ── Dark header row for three-col table ── */
.wtr-comp-table thead th {
  background: #0f1923;
  color: #fff;
  border-bottom: 2px solid #1e3245;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.wtr-comp-table .th-cap {
  background: #0f1923;
  color: rgba(255,255,255,0.55);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.wtr-comp-table .th-ss { background: #0f1923; color: #fca5a5; border-right: 1px solid rgba(255,255,255,0.08); }
.wtr-comp-table .th-erp { background: #0f1923; color: #fcd34d; border-right: 1px solid rgba(255,255,255,0.08); }
.wtr-comp-table .th-tr { background: #0f1923; color: #86efac; }

/* ERP column data cells — amber tint */
.td-erp {
  background: #fffbeb;
  color: #374151;
  border-right: 1px solid #fde68a;
}

/* Row hover — amber column deepens */
.wtr-comp-table tbody tr:hover .td-erp {
  background: #fef3c7;
}

/* TransRisk column — green cells */
.wtr-comp-table .td-tr {
  background: #dcfce7;
  color: #15803d;
}
.wtr-comp-table tbody tr:hover .td-tr {
  background: #bbf7d0;
}
.wtr-comp-table .td-tr strong {
  color: #15803d;
  font-weight: 700;
}

/* Spreadsheet column — red tint */
.wtr-comp-table .td-ss {
  background: #fef2f2;
  color: #6b7280;
  border-right: 1px solid #fecaca;
}
.wtr-comp-table tbody tr:hover .td-ss {
  background: #fee2e2;
}

/* Partial / Rare / Limited icon — amber */
.ci-partial {
  background: #fef9c3;
  color: #92400e;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

/* Amber data cells */
.wtr-comp-table .td-erp .ci-partial {
  background: #fef9c3;
  color: #b45309;
}

/* th-icon variants */
.th-icon--partial {
  background: rgba(255,255,255,0.12);
  color: #fcd34d;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}
.wtr-comp-table .th-icon--no  { background: rgba(255,255,255,0.10); color: #fca5a5; }
.wtr-comp-table .th-icon--yes { background: rgba(255,255,255,0.10); color: #86efac; }

/* cap column — sticky min-width */
.wtr-th-cap {
  min-width: 180px;
}

/* Comparison subtext — italic */
.wtr-comparison-section .comparison-subtext {
  font-style: italic;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-muted);
  max-width: 640px;
  text-align: center;
}


/* ========================
   SECTION 3 — HIDDEN COST TILES
======================== */

.cost-section {
  background: #fff;
}

.cost-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cost-tile {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cost-tile:hover {
  border-color: #fca5a5;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.07);
}

.cost-tile-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  border-radius: var(--radius-md);
  color: #dc2626;
  flex-shrink: 0;
}

.cost-tile-icon svg {
  width: 24px;
  height: 24px;
}

.cost-tile-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}

.cost-tile-body {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  .cost-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* ========================
   SECTION 4 — TRANSGRAPH CREDIBILITY BAND
======================== */

.credibility-band {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

/* Subtle texture */
.credibility-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.credibility-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}

/* Left copy */
.credibility-band-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credibility-band-title {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0;
}

.credibility-band-body {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin: 0;
}

.credibility-band-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-green-light);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  transition: color var(--transition);
}

.credibility-band-link:hover {
  color: #fff;
}

/* Right stats — 2×2 grid */
.credibility-band-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cb-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
}

.cb-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-green-light);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.cb-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .credibility-band-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .credibility-band-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .credibility-band-stats {
    grid-template-columns: 1fr 1fr;
  }
}
