/* =============================================================
   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;
}

.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: #374151;
  line-height: 1.75;
  margin: 0;
}

/* Separator lines between columns */
.diff-col + .diff-col {
  padding-left: 36px;
  border-left: 1px solid var(--color-border);
}

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

  .diff-col + .diff-col {
    padding-left: 0;
    border-left: none;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
  }
}


/* ========================
   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;
}

/* ERP column header — amber tint */
.th-erp {
  background: #fffbeb;
  color: #92400e;
  text-align: center;
  border-right: 1px solid #fde68a;
}

/* 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 — bold text */
.td-tr strong {
  font-weight: 600;
}

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

/* th-icon amber variant */
.th-icon--partial {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

/* cap column — no right padding needed for sticky */
.wtr-th-cap {
  min-width: 180px;
}

/* Comparison subtext specific to this page */
.wtr-comparison-section .comparison-subtext {
  font-style: normal;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-muted);
  max-width: 600px;
  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: var(--color-light);
  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: #d1d5db;
  box-shadow: var(--shadow-sm);
}

.cost-tile-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 31, 46, 0.06);
  border-radius: var(--radius-md);
  color: var(--color-navy);
  flex-shrink: 0;
}

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

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

.cost-tile-body {
  font-size: 0.9375rem;
  color: #374151;
  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;
  }
}
