/* ============================================================
   Loan Company Review v1 — styles
   Inherits navy + gold + green palette from comparator-v5
   ============================================================ */

:root {
  --navy: #137DAD;
  --navy-dark: #0E5F83;
  --navy-light: #2594c4;
  --navy-deep: #0a2a40;
  --gold: #fac837;
  --gold-dark: #eab308;
  --gold-light: #fef9e0;
  --green: #3ca37a;
  --green-dark: #2d8660;
  --green-light: #ecfdf5;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --red: #dc2626;
  --red-light: #fef2f2;
  --grey-50: #f7f9fc;
  --grey-100: #eef2f7;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13,42,76,.06);
  --shadow: 0 4px 12px rgba(13,42,76,.08);
  --shadow-lg: 0 12px 32px rgba(13,42,76,.12);
  --transition: 180ms cubic-bezier(.4,0,.2,1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-800);
  background: var(--grey-50);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-dark); }

/* ---------- HEADER ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--grey-200);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo::before { content: "financer"; }
.logo::after { content: "."; color: var(--gold); }

.breadcrumb { font-size: 13px; color: var(--grey-500); }
.breadcrumb a { color: var(--grey-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .current { color: var(--grey-700); }

/* ---------- HERO ---------- */
.page-hero {
  background: linear-gradient(180deg, #fff 0%, var(--grey-50) 100%);
  padding: 36px 0 24px;
}
.review-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-600);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.review-eyebrow__tag {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.review-eyebrow__sep { color: var(--grey-300); }
.freshness-pill {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border: 1px solid #a7f3d0;
}
.freshness-pill strong { color: var(--green-dark); font-weight: 700; }

.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
  max-width: 880px;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--grey-600);
  max-width: 820px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--grey-600);
  margin-bottom: 24px;
}
.byline .author { display: inline-flex; align-items: center; gap: 6px; }
.byline .author-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: white; display: inline-flex;
  align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
}
.byline .role { color: var(--grey-500); }
.byline .dot { color: var(--grey-400); }
.byline .updated, .byline .author strong { color: var(--grey-700); font-weight: 600; }
.byline .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* ---------- HERO CARD ---------- */
.review-hero-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-top: 6px;
}

.hero-card__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--grey-100);
  padding-right: 24px;
}
.overall-rating {
  display: flex;
  align-items: center;
  gap: 14px;
}
.overall-rating__score {
  font-size: 56px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.overall-rating__meta { flex: 1; }
.overall-rating__stars {
  font-size: 18px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 2px;
}
.overall-rating__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.overall-rating__based-on {
  font-size: 11px;
  color: var(--grey-500);
  margin-top: 2px;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0;
}
.hero-badge {
  background: var(--gold-light);
  color: var(--navy-deep);
  border: 1px solid var(--gold);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero-badge::before { content: "★"; color: var(--gold-dark); font-size: 11px; }

.primary-cta {
  display: block;
  background: var(--navy);
  color: white !important;
  text-align: center;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background var(--transition);
}
.primary-cta:hover { background: var(--navy-dark); }
.cta-disclaimer {
  font-size: 11.5px;
  color: var(--green-dark);
  text-align: center;
  font-weight: 600;
  margin-top: -2px;
}
.secondary-cta {
  display: block;
  text-align: center;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--grey-600) !important;
  text-decoration: none !important;
}
.secondary-cta:hover { color: var(--navy) !important; }

/* Specs grid (6 + 1 originator) */
.hero-card__right { padding-left: 4px; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.spec-chip {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  position: relative;
  transition: all var(--transition);
}
.spec-chip:hover { border-color: var(--navy-light); background: white; }
.spec-chip__label {
  font-size: 10.5px;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 5px;
}
.spec-chip__value {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 3px;
}
.spec-chip__sub {
  font-size: 11.5px;
  color: var(--grey-500);
  line-height: 1.35;
}
.spec-chip--originator {
  grid-column: span 3;
  background: var(--gold-light);
  border-color: var(--gold);
}
.spec-chip--originator .spec-chip__label { color: var(--gold-dark); }
.spec-chip--originator .spec-chip__value { color: var(--navy-deep); }
.spec-chip--originator::before {
  content: "🏦 Loan originator";
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spec-chip--originator .spec-chip__label { display: none; }

/* ---------- LAYOUT: TOC + content ---------- */
.review-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  margin: 32px auto 60px;
}
.toc-rail { position: relative; }
.toc-rail__inner {
  position: sticky;
  top: 76px;
  padding: 18px;
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.toc-rail__head {
  font-size: 11px;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grey-100);
}
.toc-rail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  padding: 0;
}
.toc-rail__list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--grey-600);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}
.toc-rail__list a:hover { background: var(--grey-50); color: var(--navy); }
.toc-rail__list a.is-active {
  background: var(--grey-50);
  color: var(--navy);
  font-weight: 600;
  border-left-color: var(--gold);
}
.toc-rail__cta {
  display: block;
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--navy);
  color: white !important;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.toc-rail__cta:hover { background: var(--navy-dark); }

.review-main { min-width: 0; }

/* ---------- SECTION wrapper ---------- */
.content-section {
  background: white;
  border-radius: var(--radius);
  padding: 30px 34px;
  border: 1px solid var(--grey-200);
  margin-bottom: 22px;
  scroll-margin-top: 76px;
}
.content-section h2 {
  font-size: 25px;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.content-section h3 {
  font-size: 18px;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}
.content-section h4 {
  font-size: 14px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  font-weight: 700;
}
.content-section p { margin-bottom: 12px; color: var(--grey-700); line-height: 1.65; }
.section-intro { font-size: 15px; color: var(--grey-600); margin-bottom: 22px; max-width: 800px; line-height: 1.6; }

/* ---------- ALERT (callout) ---------- */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.55;
  align-items: flex-start;
}
.alert__icon { font-size: 18px; line-height: 1; margin-top: 1px; flex-shrink: 0; }
.alert--warning { background: var(--amber-light); border: 1px solid #fde68a; color: #92400e; }
.alert--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert strong { font-weight: 700; }

/* ---------- EDITOR'S TAKE ---------- */
.content-section--take {
  background: linear-gradient(180deg, #fff 0%, var(--gold-light) 130%);
}
.editors-take {
  background: white;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 6px;
  box-shadow: var(--shadow-sm);
}
.editors-take__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-100);
}
.editors-take__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.editors-take__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}
.editors-take__role {
  font-size: 12px;
  color: var(--grey-500);
}
.editors-take p {
  font-size: 15px;
  color: var(--grey-700);
  line-height: 1.7;
  margin: 0;
}
.editors-take p::before {
  content: "“";
  font-family: Georgia, serif;
  font-size: 42px;
  color: var(--gold);
  line-height: 0;
  display: inline-block;
  margin-right: 4px;
  vertical-align: -8px;
}

/* ---------- PROS / CONS ---------- */
.proscons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.proscons-col {
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid;
}
.proscons-col--pros { background: var(--green-light); border-color: #a7f3d0; }
.proscons-col--cons { background: var(--red-light); border-color: #fecaca; }
.proscons-col__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.proscons-col__head h2 {
  font-size: 17px !important;
  margin: 0 !important;
  font-weight: 800 !important;
}
.proscons-col--pros .proscons-col__head h2 { color: var(--green-dark) !important; }
.proscons-col--cons .proscons-col__head h2 { color: #991b1b !important; }
.proscons-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: white;
}
.proscons-icon--good { background: var(--green); }
.proscons-icon--bad  { background: var(--red); }
.proscons-col ul { list-style: none; padding: 0; }
.proscons-col ul li {
  padding: 8px 0 8px 22px;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.proscons-col ul li:last-child { border-bottom: none; }
.proscons-col--pros ul li { color: #065f46; }
.proscons-col--cons ul li { color: #7f1d1d; }
.proscons-col--pros ul li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--green); font-weight: 800;
}
.proscons-col--cons ul li::before {
  content: "✕"; position: absolute; left: 0; top: 8px;
  color: var(--red); font-weight: 800;
}

/* ---------- FINANCER SCORE ---------- */
.financer-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin: 8px 0 24px;
}
.fscore {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.fscore__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.fscore__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-800);
}
.fscore__weight {
  font-size: 11px;
  color: var(--grey-500);
  font-weight: 600;
  background: white;
  border: 1px solid var(--grey-200);
  padding: 2px 8px;
  border-radius: 999px;
}
.fscore__bar {
  position: relative;
  height: 8px;
  background: var(--grey-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.fscore__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 4px;
}
.fscore__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fscore__score {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}
.fscore__note {
  font-size: 12px;
  color: var(--grey-500);
  text-align: right;
  flex: 1;
  line-height: 1.4;
}

/* ---------- APR-RANGE BAR ---------- */
.apr-bar-card {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 20px;
}
.apr-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.apr-bar-head h3 {
  color: white !important;
  margin: 0 !important;
  font-size: 16px !important;
}
.apr-bar-median {
  font-size: 12.5px;
  color: rgba(255,255,255,.75);
}
.apr-bar-median strong { color: var(--gold); font-weight: 800; }

.apr-bar {
  position: relative;
  padding: 0 0 16px;
}
.apr-bar__track {
  position: relative;
  height: 12px;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  overflow: visible;
}
.apr-bar__typical {
  position: absolute;
  top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold) 80%, var(--red) 100%);
  border-radius: 6px;
  opacity: 0.7;
}
.apr-bar__marker {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 20px;
  background: white;
  border-radius: 2px;
  transform: translateX(-2px);
}
.apr-bar__marker--median { background: rgba(255,255,255,.5); }
.apr-bar__marker--pick {
  background: var(--gold);
  width: 6px;
  height: 24px;
  top: -6px;
  transform: translateX(-3px);
  box-shadow: 0 0 0 3px rgba(250,200,55,.3);
}
.apr-bar__marker--pick::after {
  content: "9.5%";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.apr-bar__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
}
.apr-bar__min { color: var(--green); }
.apr-bar__max { color: var(--red); }

.apr-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
.apr-bar-legend__swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}
.apr-bar-legend__swatch--typical {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  opacity: 0.7;
}
.apr-bar-legend__swatch--median { background: rgba(255,255,255,.5); }
.apr-bar-legend__swatch--pick { background: var(--gold); }

/* ---------- DATASETS ---------- */
.datasets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.dataset {
  background: var(--grey-50);
  border-left: 3px solid var(--gold);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.dataset__label {
  font-size: 11.5px;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 4px;
}
.dataset__value {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.dataset__note {
  font-size: 11.5px;
  color: var(--grey-500);
  margin-top: 2px;
}

.datasets-more {
  margin-top: 14px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.datasets-more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}
.datasets-more summary::-webkit-details-marker { display: none; }
.datasets-more__chev {
  transition: transform var(--transition);
  color: var(--navy);
  font-size: 14px;
}
.datasets-more[open] .datasets-more__chev { transform: rotate(180deg); }
.datasets-grid--hidden { margin-top: 12px; }

/* ---------- BEST FOR tiles ---------- */
.bestfor-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bestfor-tile {
  background: white;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  transition: all var(--transition);
}
.bestfor-tile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.bestfor-tile__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  border: 2px solid var(--gold);
}
.bestfor-tile__label {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.bestfor-tile__sub {
  font-size: 12.5px;
  color: var(--grey-500);
  margin-bottom: 12px;
}
.bestfor-tile__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  border-top: 1px solid var(--grey-100);
  padding-top: 10px;
  width: 100%;
}

/* ---------- KEY FEATURES ---------- */
.keyfeatures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.keyfeature {
  background: var(--grey-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.keyfeature__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.keyfeature__body { flex: 1; }
.keyfeature__label {
  font-size: 11.5px;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 2px;
}
.keyfeature__value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- REQUIREMENTS ---------- */
.requirements-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
}
.requirements-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-700);
}
.requirements-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-light);
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- DATA TABLES ---------- */
.table-wrap { overflow-x: auto; margin: 12px 0 16px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th, .data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: top;
}
.data-table thead th {
  background: var(--grey-50);
  font-size: 11px;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  border-bottom: 2px solid var(--grey-200);
}
.data-table tbody td:first-child { font-weight: 600; color: var(--grey-800); }
.data-table tbody tr:hover { background: var(--grey-50); }

/* ---------- COST EXAMPLE ---------- */
.cost-example-card {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 16px 0;
}
.cost-example-card__head { margin-bottom: 12px; }
.cost-example-card__tag {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cost-example-card h4 {
  color: white !important;
  font-size: 16.5px !important;
  margin-top: 10px !important;
}
.cost-example-table {
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 12px 0;
}
.cost-example-table td:first-child {
  width: 60%;
  font-weight: 600;
  color: var(--grey-800);
}
.cost-example-table td:last-child {
  text-align: right;
  font-weight: 800;
  color: var(--navy);
  font-size: 16px;
}
.cost-example-table tr.is-final {
  background: var(--gold-light);
}
.cost-example-table tr.is-final td:last-child {
  color: var(--navy-deep);
  font-size: 18px;
}
.cost-example-note {
  color: rgba(255,255,255,.9) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ---------- FAQ ---------- */
.faq-section {
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 22px;
  scroll-margin-top: 76px;
}
.faq-section h2 {
  font-size: 25px;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.faq-intro {
  font-size: 14px;
  color: var(--grey-600);
  margin-bottom: 20px;
}
.faq-item { border-bottom: 1px solid var(--grey-200); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 40px 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--navy);
  font-weight: 400;
  width: 26px; height: 26px;
  background: var(--grey-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; background: var(--navy); color: white; }
.faq-answer {
  padding: 0 0 18px 0;
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.65;
}

/* ---------- ALTERNATIVES TABLE ---------- */
.alt-table-wrap { overflow-x: auto; margin: 16px 0; }
.alt-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.alt-table th, .alt-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--grey-100);
  vertical-align: top;
}
.alt-table tr:last-child th, .alt-table tr:last-child td { border-bottom: none; }
.alt-table thead th {
  background: var(--grey-50);
  font-size: 12px;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.alt-table thead th.alt-header-current { background: var(--navy); color: white; }
.alt-table thead th.alt-header-alt { background: var(--gold-light); color: var(--navy-deep); }
.alt-table tbody th {
  background: var(--grey-50);
  font-size: 12px;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  border-right: 1px solid var(--grey-200);
  width: 160px;
}
.alt-table tbody td { font-weight: 600; color: var(--grey-800); }
.alt-table tr.is-current td { background: rgba(19,125,173,0.04); }
.alt-table tr.is-cta td {
  padding: 16px;
  background: var(--grey-50);
}
.alt-table .alt-logo {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.alt-table .alt-score {
  display: inline-block;
  background: var(--gold-light);
  color: var(--navy-deep);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.alt-table .alt-current-badge {
  display: inline-block;
  background: var(--navy);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}
.alt-table .alt-bottomline {
  font-size: 13px;
  color: var(--grey-600);
  font-weight: 500;
  line-height: 1.55;
}
.alt-table .alt-cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.alt-table .alt-cta--primary { background: var(--navy); color: white !important; }
.alt-table .alt-cta--secondary { background: white; border: 1px solid var(--grey-300); color: var(--navy) !important; }

/* ---------- METHODOLOGY ---------- */
.methodology {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 22px;
}
.methodology h3 {
  font-size: 13px;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 12px;
}
.methodology__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 22px;
  font-size: 13px;
  color: var(--grey-700);
  margin-bottom: 12px;
  padding: 0;
}
.methodology__list li { padding-left: 20px; position: relative; line-height: 1.5; }
.methodology__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 800;
}
.methodology__list li strong { color: var(--navy); font-weight: 700; }
.methodology__note {
  font-size: 11.5px;
  color: var(--grey-500);
  font-style: italic;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 40px 0;
  margin-top: 40px;
  font-size: 13px;
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .review-hero-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-card__left {
    border-right: none;
    border-bottom: 1px solid var(--grey-100);
    padding-right: 0;
    padding-bottom: 20px;
  }
  .hero-card__right { padding-left: 0; }
}
@media (max-width: 1080px) {
  .review-layout { grid-template-columns: 1fr; gap: 0; }
  .toc-rail { display: none; }
}
@media (max-width: 768px) {
  .page-hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .spec-chip--originator { grid-column: span 2; }
  .financer-score-grid,
  .proscons-grid,
  .keyfeatures-grid,
  .bestfor-tiles,
  .datasets-grid,
  .requirements-list { grid-template-columns: 1fr; }
  .methodology__list { grid-template-columns: 1fr; }
  .content-section { padding: 22px 18px; }
  .content-section h2 { font-size: 22px; }
  .faq-section { padding: 20px 18px; }
  .data-table th, .data-table td { padding: 9px 8px; font-size: 12.5px; }
  .alt-table tbody th { width: 110px; }
}
@media (max-width: 520px) {
  .container { padding: 0 14px; }
  .page-hero h1 { font-size: 24px; }
  .review-hero-card { padding: 18px; }
  .overall-rating__score { font-size: 44px; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-chip--originator { grid-column: span 1; }
}