/* Landing-page comparison layer. Loaded after app.css so the simulator stays narrow
   while the country matrix can use the available viewport. */

.landing-hero {
  padding-bottom: 18px;
}

/* The country comparison table now carries these headline facts, so the old UK-only
   callout strip is intentionally hidden to keep the landing page tighter. */
.landing-callouts { display: none; }

.comparison-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 10px;
}
.comparison-heading h2 { font-size: 22px; }
.swipe-hint {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.comparison-wrap {
  width: min(1240px, calc(100vw - 28px));
  margin-left: 50%;
  transform: translateX(-50%);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(10, 18, 34, .82);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}
.comparison-wrap:focus { outline: 2px solid rgba(101, 214, 194, .35); outline-offset: 2px; }

.comparison-table {
  width: 100%;
  min-width: 1510px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.comparison-table th,
.comparison-table td {
  padding: 13px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid rgba(38, 55, 86, .72);
  background: rgba(16, 26, 46, .91);
}
.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  background: #0d182b;
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.comparison-table thead th small {
  display: block;
  margin-top: 2px;
  color: #70809d;
  font-size: 8px;
  letter-spacing: .03em;
  text-transform: none;
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr:hover th,
.comparison-table tbody tr:hover td { background: #13213a; }

/* app.css uses country-card for the old tile layout. On the table, the same class
   is deliberately retained as the JS launch hook and reset to a normal table row. */
.comparison-table tr.country-card,
.comparison-table tr.country-card.live {
  display: table-row;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
  box-shadow: none;
}
.comparison-table tr.country-card.live { cursor: pointer; }
.comparison-table tr.country-card.live:active { transform: none; }
.comparison-table tr.country-card.live th,
.comparison-table tr.country-card.live td {
  background: rgba(22, 45, 68, .96);
}
.comparison-table tr.country-card.live:hover th,
.comparison-table tr.country-card.live:hover td {
  background: rgba(27, 58, 82, .98);
}

.comparison-table .sticky-country {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 178px;
  max-width: 178px;
  text-align: left;
  box-shadow: 10px 0 18px rgba(3, 8, 18, .22);
}
.comparison-table thead .sticky-country { z-index: 5; }
.row-flag {
  display: inline-block;
  width: 31px;
  margin-right: 8px;
  vertical-align: middle;
  font-size: 22px;
}
.row-country {
  display: inline-block;
  vertical-align: middle;
  max-width: 125px;
}
.row-country strong { display: block; color: var(--text); font-size: 13px; }
.row-country small { display: block; margin-top: 2px; color: var(--accent); font-size: 9px; font-weight: 700; }

.comparison-table .priority-stat {
  background: rgba(18, 35, 58, .95);
}
.comparison-table tr.country-card.live .priority-stat {
  background: rgba(24, 52, 76, .99);
}
.comparison-table .priority-stat strong { color: var(--text); }
.comparison-table .tax-stat {
  min-width: 190px;
  max-width: 250px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.negative-stat { color: #ffd1d1; }
.positive-stat { color: var(--good); }

.comparison-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.comparison-note strong { color: #cbd7eb; }
.comparison-sources {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 2px 0;
}
.comparison-sources a {
  color: var(--muted);
  font-size: 9px;
  text-decoration: underline;
  text-decoration-color: rgba(154, 169, 196, .35);
  text-underline-offset: 3px;
}
.comparison-sources a:hover { color: var(--accent-2); }

.baseline-strip-four { grid-template-columns: repeat(4, 1fr); }
.baseline-strip-four strong { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .hero-copy.landing-hero { padding-top: 30px; }
  .comparison-wrap { width: calc(100vw - 18px); border-radius: 14px; }
  .comparison-table { min-width: 1480px; }
  .comparison-table th,
  .comparison-table td { padding: 12px 10px; }
  .comparison-table .sticky-country { min-width: 160px; max-width: 160px; }
  .row-flag { width: 27px; margin-right: 5px; font-size: 20px; }
  .row-country { max-width: 112px; }
  .row-country strong { font-size: 12px; }
  .baseline-strip-four { grid-template-columns: 1fr 1fr; }
}
