:root {
  --ink: #151515;
  --muted: #667066;
  --line: #dce3dc;
  --paper: #fbfbf7;
  --surface: #ffffff;
  --surface-soft: #f7f8f4;
  --surface-raised: #ffffff;
  --control-bg: #ffffff;
  --body-copy: #485248;
  --fact-border: #edf0ed;
  --chip-bg: #f7f8f4;
  --chip-border: #e4e8e4;
  --chip-text: #475047;
  --green: #00732f;
  --red: #d71920;
  --gold: #b8903b;
  --black: #0d0f0e;
  --shadow: 0 20px 60px rgba(21, 21, 21, 0.1);
}

/* Final UI rewrite overrides: keep this layer last. */
body {
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.98), var(--paper) 35%, var(--surface-soft));
  overflow-x: clip;
}

html[data-theme="dark"] body {
  background: linear-gradient(180deg, #09131f, var(--paper) 42%, #08110d);
}

.topbar {
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 1px 0 var(--line);
}

.topnav {
  flex-wrap: wrap;
}

.topnav a {
  color: var(--muted);
}

.home-hero,
.bank-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: min(760px, calc(100svh - 5rem));
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.home-hero h1,
.page-hero h1,
.bank-profile-hero h1,
.product-detail-hero h1,
.compact-hero h1 {
  max-width: 15ch;
  color: var(--navy);
  font-size: clamp(2.35rem, 5.8vw, 4.8rem);
  line-height: 1;
}

.page-hero,
.compact-hero {
  min-height: 18rem;
  display: grid;
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.trust-panel,
.disclaimer-panel,
.evidence-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.comparison-toolbar.page-toolbar {
  grid-template-columns: repeat(6, minmax(9rem, 1fr));
}

.comparison-toolbar.page-toolbar .search {
  grid-column: span 2;
}

.bank-card,
.service-card,
.product-card,
.service-result-card,
.health-card,
.asset-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.product-card {
  min-height: auto;
}

.product-card.directory-product {
  grid-template-columns: 1fr;
}

.directory-product .product-media {
  min-height: 12rem;
  border-bottom: 1px solid var(--line);
}

.directory-product .product-media img {
  width: min(100%, 17rem);
  max-height: 11rem;
}

.product-media img.fallback-logo,
.service-result-logo img.fallback-logo {
  width: min(76%, 9rem);
  max-height: 4.5rem;
  object-fit: contain;
  padding: 0.7rem;
  border: 1px solid var(--fact-border);
  border-radius: 10px;
  background: #fff;
}

.bank-cover-fallback {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 115, 47, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 115, 47, 0.14), rgba(190, 151, 90, 0.16)),
    var(--surface);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.directory-product .product-body {
  padding: 1rem;
}

.service-result-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.service-result-logo {
  display: grid;
  place-items: center;
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 3.4rem;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.service-result-logo .bank-cover-fallback {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  font-size: 0.95rem;
}

.product-card h3 {
  font-size: 1.06rem;
}

.compare-tray {
  position: sticky;
  bottom: 0.75rem;
  z-index: 30;
  box-shadow: var(--shadow);
}

.compare-tray .compare-remove {
  min-height: 2.2rem;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 0 0.65rem;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.quality-chips,
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quality-chips span,
.warning-chip {
  width: fit-content;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.quality-chips span {
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}

.warning-chip {
  color: var(--red);
  background: var(--danger-soft);
}

.global-search-results,
.search-result-group,
.evidence-steps,
.methodology-grid {
  display: grid;
  gap: 0.75rem;
}

.methodology-grid,
.evidence-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .home-hero,
  .bank-profile-hero,
  .methodology-grid,
  .evidence-section {
    grid-template-columns: 1fr;
  }

  .comparison-toolbar.page-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero h1,
  .page-hero h1,
  .bank-profile-hero h1,
  .product-detail-hero h1,
  .compact-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .comparison-toolbar.page-toolbar {
    grid-template-columns: 1fr;
  }
}

/* 2026 sleek redesign layer */
:root {
  --ink: #101418;
  --muted: #68717c;
  --paper: #f5f7fa;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.56);
  --surface-raised: rgba(255, 255, 255, 0.94);
  --control-bg: rgba(255, 255, 255, 0.9);
  --line: rgba(16, 20, 24, 0.1);
  --fact-border: rgba(16, 20, 24, 0.08);
  --chip-bg: rgba(16, 20, 24, 0.05);
  --chip-border: rgba(16, 20, 24, 0.08);
  --chip-text: #38414a;
  --green: #2563eb;
  --red: #d71920;
  --gold: #b8872f;
  --blue: #00a3ff;
  --navy: #111827;
  --black: #101418;
  --body-copy: #46505a;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
  --shadow-soft: 0 18px 50px rgba(17, 24, 39, 0.1);
  --shadow-card: 0 12px 34px rgba(17, 24, 39, 0.08);
}

html[data-theme="dark"] {
  --ink: #f6f7fb;
  --muted: #a7b0bc;
  --paper: #070b10;
  --surface: rgba(16, 22, 30, 0.78);
  --surface-soft: rgba(21, 29, 39, 0.64);
  --surface-raised: rgba(22, 30, 40, 0.92);
  --control-bg: rgba(13, 18, 25, 0.94);
  --line: rgba(255, 255, 255, 0.11);
  --fact-border: rgba(255, 255, 255, 0.09);
  --chip-bg: rgba(255, 255, 255, 0.07);
  --chip-border: rgba(255, 255, 255, 0.1);
  --chip-text: #d7dde5;
  --green: #7aa7ff;
  --red: #ff6670;
  --gold: #e7c16e;
  --blue: #7db0ff;
  --navy: #f7faff;
  --body-copy: #c5ced8;
}

body,
html[data-theme="dark"] body {
  min-height: 100svh;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 88%, #ffffff 12%), var(--paper)),
    var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

main {
  width: min(1200px, calc(100% - clamp(1rem, 4vw, 3rem)));
}

.topbar {
  width: min(1220px, calc(100% - 1rem));
  margin: 0.5rem auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 84%, transparent);
  box-shadow: var(--shadow-card);
}

.brand-mark {
  border-radius: 13px;
}

.brand small {
  font-size: 0.72rem;
}

.topnav a,
.nav-action,
.theme-toggle,
.button,
.product-action-button {
  border-radius: 999px;
}

.topnav a,
.nav-action {
  min-height: 2.25rem;
  padding: 0 0.78rem;
  color: var(--muted);
  font-size: 0.86rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.topnav a:hover,
.nav-action:hover {
  color: var(--ink);
  background: var(--chip-bg);
}

.theme-toggle {
  background: var(--chip-bg);
  border-color: var(--chip-border);
}

.home-hero,
.checker-hero,
.page-hero,
.compact-hero,
.bank-profile-hero,
.product-detail-hero {
  min-height: auto;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}

.home-hero h1,
.checker-hero h1,
.page-hero h1,
.compact-hero h1,
.bank-profile-hero h1,
.product-detail-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text,
.body-copy,
.modal-copy {
  color: var(--body-copy);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.eyebrow {
  color: var(--green);
  letter-spacing: 0.08em;
}

.button.primary {
  background: linear-gradient(135deg, var(--black), color-mix(in srgb, var(--green) 58%, var(--black)));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--green) 18%, transparent);
}

.button.secondary,
.button.ghost,
.product-action-button {
  color: var(--ink);
  background: var(--surface-raised);
  border-color: var(--line);
}

.trust-panel,
.checker-preview,
.checker-card,
.checker-results-panel,
.bank-card,
.service-card,
.product-card,
.service-result-card,
.health-card,
.asset-card,
.source-card,
.detail-data-section,
.evidence-box,
.disclaimer-panel,
.evidence-section,
.comparison-toolbar,
.toolbar,
.compare-tray {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(22px);
}

.checker-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.hero-glass-card {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 14%, transparent), color-mix(in srgb, var(--gold) 12%, transparent)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.hero-glass-card strong {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.05;
}

.hero-glass-card span {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
  color: var(--body-copy);
  font-weight: 800;
}

.checker-preview h2,
.checker-card h2,
.checker-results-panel h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.comparison-toolbar,
.toolbar {
  position: sticky;
  top: 5.25rem;
  z-index: 12;
}

input,
select,
textarea {
  min-height: 3rem;
  border-radius: 16px;
  border-color: var(--line);
  background: var(--control-bg);
  color: var(--ink);
}

textarea {
  padding: 0.8rem;
  resize: vertical;
}

.bank-grid,
.service-grid,
.comparison-grid,
.health-grid {
  gap: 1rem;
}

.bank-card,
.service-card,
.product-card,
.service-result-card {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.bank-card:hover,
.service-card:hover,
.product-card:hover,
.service-result-card:hover,
.asset-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--green) 30%, var(--line));
  box-shadow: var(--shadow-soft);
}

.product-media {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 9%, transparent), color-mix(in srgb, var(--gold) 12%, transparent)),
    var(--surface-soft);
}

.product-media::after {
  border-color: color-mix(in srgb, var(--gold) 18%, transparent);
  border-radius: calc(var(--radius) - 8px);
}

.product-data-table,
.compare-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--fact-border);
  border-radius: var(--radius-sm);
}

.product-data-table div,
.compare-list div {
  border-top: 0;
  border-bottom: 1px solid var(--fact-border);
  padding: 0.72rem;
  background: color-mix(in srgb, var(--surface-raised) 72%, transparent);
}

.product-data-table div:last-child,
.compare-list div:last-child {
  border-bottom: 0;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
}

.agent-card {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--green) 22%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--green) 8%, var(--surface-raised));
}

.agent-card span {
  color: var(--muted);
}

.checker-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.checker-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
  gap: 1rem;
  padding-bottom: 4rem;
}

.checker-card,
.checker-results-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.step-pill,
.match-status {
  width: fit-content;
  border-radius: 999px;
  padding: 0.36rem 0.62rem;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 11%, transparent);
  font-size: 0.76rem;
  font-weight: 900;
}

.checker-contact {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.checker-results {
  display: grid;
  gap: 0.8rem;
}

.match-card {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.match-card img {
  width: 100%;
  height: 4.5rem;
  object-fit: contain;
  align-self: center;
}

.match-card h3,
.match-card p {
  margin: 0;
}

.match-card dl {
  display: grid;
  gap: 0.35rem;
  margin: 0.65rem 0;
}

.match-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--body-copy);
}

.match-card dd {
  margin: 0;
  font-weight: 800;
}

.service-beauty-card {
  align-content: start;
  min-height: 22rem;
}

.service-visual {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  margin: -0.25rem -0.25rem 0.2rem;
  border-radius: calc(var(--radius) - 8px);
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 45%),
    linear-gradient(135deg, color-mix(in srgb, var(--green) 16%, transparent), color-mix(in srgb, var(--gold) 16%, transparent)),
    var(--surface-soft);
}

.service-visual img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(17, 24, 39, 0.18));
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legal-copy {
  display: grid;
  gap: 1rem;
  max-width: 880px;
}

.legal-copy h2 {
  margin-top: 1.2rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.legal-copy p {
  margin: 0;
  color: var(--body-copy);
  line-height: 1.75;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.floating-report-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem;
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.site-modal {
  width: min(94vw, 34rem);
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.site-modal::backdrop {
  background: rgba(8, 12, 18, 0.46);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--chip-bg);
  cursor: pointer;
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    align-items: start;
    border-radius: 28px;
  }

  .topnav {
    justify-content: start;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 0.15rem;
  }

  .home-hero,
  .checker-layout,
  .checker-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .checker-hero {
    display: grid;
  }

  .comparison-toolbar,
  .toolbar {
    position: static;
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 1rem, 1200px);
  }

  .topbar {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .topnav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topnav a,
  .nav-action {
    flex: 0 0 auto;
    padding: 0 0.45rem;
    font-size: 0.8rem;
  }

  .theme-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }

  .home-hero h1,
  .checker-hero h1,
  .page-hero h1,
  .compact-hero h1,
  .bank-profile-hero h1,
  .product-detail-hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .checker-preview,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .form-row,
  .match-card,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .match-card img {
    height: 6rem;
  }

  .floating-report-button {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

/* Premium static UI refresh */
:root {
  --navy: #0b1f33;
  --navy-2: #102a43;
  --blue: #1f6feb;
  --emerald: #0b8f5a;
  --sand: #f6f2e8;
  --danger-soft: #fff2f2;
  --radius: 8px;
  --shadow-soft: 0 14px 40px rgba(16, 42, 67, 0.08);
  --shadow-card: 0 10px 28px rgba(16, 42, 67, 0.07);
}

html[data-theme="dark"] {
  --navy: #e8f1ff;
  --navy-2: #d7e6f8;
  --blue: #74a7ff;
  --emerald: #4bd18e;
  --sand: #151b20;
  --danger-soft: #281719;
}

body {
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.98), var(--paper) 32%, var(--surface-soft) 100%);
}

html[data-theme="dark"] body {
  background:
    linear-gradient(180deg, #09131f 0%, var(--paper) 44%, #08110d 100%);
}

.topbar {
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 1px 0 var(--line);
}

.brand strong {
  color: var(--navy);
  letter-spacing: 0;
}

.topnav {
  flex-wrap: wrap;
  justify-content: center;
}

.topnav a {
  color: var(--muted);
}

.topnav a:hover {
  color: var(--navy);
  background: color-mix(in srgb, var(--blue) 9%, transparent);
}

.button.secondary {
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
}

.button.secondary:hover {
  background: color-mix(in srgb, var(--blue) 13%, var(--surface));
}

.home-hero,
.bank-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: min(760px, calc(100svh - 5rem));
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.home-hero h1,
.page-hero h1,
.bank-profile-hero h1,
.product-detail-hero h1 {
  max-width: 15ch;
  color: var(--navy);
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: 0.98;
}

.page-hero {
  min-height: 18rem;
  display: grid;
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact-hero {
  min-height: 18rem;
}

.hero-text,
.body-copy {
  max-width: 64ch;
  color: var(--body-copy);
  font-size: 1.04rem;
  line-height: 1.7;
}

.trust-panel,
.disclaimer-panel,
.evidence-section,
.source-card,
.detail-score-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.trust-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.trust-panel-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--emerald) 14%, transparent);
}

.mini-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.mini-metric-list article {
  min-height: 6.5rem;
  display: grid;
  align-content: end;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid var(--fact-border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.mini-metric-list span {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 800;
}

.mini-metric-list small {
  color: var(--muted);
  font-weight: 800;
}

.global-search {
  margin: 1.25rem 0 0.75rem;
  text-transform: none;
}

.global-search span {
  color: var(--navy);
  font-size: 0.88rem;
}

.global-search input {
  min-height: 3.35rem;
  border-color: color-mix(in srgb, var(--blue) 24%, var(--line));
  box-shadow: var(--shadow-card);
}

.global-search-results {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}

.search-result-group {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-result-group h3 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
}

.search-result-group a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.75rem;
  padding: 0.55rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.search-result-group a:hover {
  background: var(--surface-soft);
}

.search-result-group span {
  color: var(--muted);
  font-size: 0.84rem;
}

.search-result-group em {
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 10%, var(--surface));
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.bank-card,
.service-card,
.product-card,
.service-result-card,
.health-card,
.asset-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.bank-card h3 a,
.service-card h3 a {
  color: inherit;
  text-decoration: none;
}

.bank-card h3 a:hover,
.service-card h3 a:hover {
  color: var(--blue);
}

.comparison-toolbar,
.toolbar {
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-card);
}

.page-toolbar {
  grid-template-columns: repeat(6, minmax(9rem, 1fr));
}

.page-toolbar .search {
  grid-column: span 2;
}

.rank-badge,
.warning-chip,
.quality-chips span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.rank-badge {
  color: var(--emerald);
  border-color: color-mix(in srgb, var(--emerald) 24%, var(--line));
  background: color-mix(in srgb, var(--emerald) 9%, var(--surface));
}

.warning-chip {
  color: var(--red);
  background: var(--danger-soft);
}

.quality-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quality-chips span {
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}

.compare-tray {
  position: sticky;
  bottom: 0.75rem;
  z-index: 30;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.compare-tray .compare-remove {
  min-height: 2.2rem;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 0 0.65rem;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.comparison-table-scroll {
  border-radius: var(--radius);
}

.comparison-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}

.evidence-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 1rem;
  padding: 1.25rem;
}

.evidence-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.evidence-steps article {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--fact-border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.evidence-steps strong {
  color: var(--blue);
}

.disclaimer-panel {
  padding: 1.25rem;
}

.is-hidden {
  display: none !important;
}

.bank-profile-hero {
  min-height: auto;
  align-items: start;
}

.bank-hero-main {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.bank-hero-logo {
  width: 7.5rem;
  max-height: 4.5rem;
  object-fit: contain;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.bank-hero-facts {
  align-self: stretch;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.75rem;
}

.compact-list .bank-card:nth-child(n + 7),
.featured-grid .product-card:nth-child(n + 7) {
  display: none;
}

@media (max-width: 900px) {
  .home-hero,
  .bank-profile-hero,
  .evidence-section,
  .methodology-grid {
    grid-template-columns: 1fr;
  }

  .page-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .page-toolbar .search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .home-hero h1,
  .page-hero h1,
  .bank-profile-hero h1,
  .product-detail-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .mini-metric-list,
  .evidence-steps,
  .page-toolbar {
    grid-template-columns: 1fr;
  }

  .bank-hero-main {
    align-items: start;
    flex-direction: column;
  }

  .compare-tray {
    bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

html[data-theme="dark"] {
  --ink: #f3f7f1;
  --muted: #a9b5aa;
  --line: #26352d;
  --paper: #0d120f;
  --surface: #121a15;
  --surface-soft: #17231c;
  --surface-raised: #18241d;
  --control-bg: #0f1712;
  --body-copy: #c1cabe;
  --fact-border: #26352d;
  --chip-bg: #17231c;
  --chip-border: #304338;
  --chip-text: #c6d0c5;
  --green: #35c46f;
  --red: #ff6268;
  --gold: #d6b768;
  --black: #050806;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 115, 47, 0.08) 0 12%, transparent 12% 100%),
    radial-gradient(circle at 85% 8%, rgba(184, 144, 59, 0.18), transparent 26rem),
    linear-gradient(180deg, #f6f7f1 0%, var(--paper) 38%, #ffffff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] body {
  background:
    linear-gradient(135deg, rgba(53, 196, 111, 0.08) 0 12%, transparent 12% 100%),
    radial-gradient(circle at 85% 8%, rgba(214, 183, 104, 0.14), transparent 26rem),
    linear-gradient(180deg, #09100c 0%, var(--paper) 42%, #0b110d 100%);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(251, 251, 247, 0.88)),
    linear-gradient(90deg, var(--red), var(--green), #fff, var(--black));
  backdrop-filter: blur(18px);
}

.theme-toggle {
  min-height: 2.45rem;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 8px;
  padding: 0 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.brand-mark {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  width: 2.4rem;
  height: 2.4rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(21, 21, 21, 0.08);
}

.brand-mark span:first-child {
  grid-row: 1 / 4;
  background: var(--red);
}

.brand-mark span:nth-child(2) {
  background: var(--green);
}

.brand-mark span:nth-child(3) {
  background: #fff;
}

.brand-mark span:nth-child(4) {
  background: var(--black);
}

.topnav {
  display: flex;
  gap: 0.4rem;
}

.topnav a,
.button {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 0.9rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.topnav a {
  color: #3d453d;
}

.topnav a:hover {
  background: rgba(0, 115, 47, 0.08);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.dashboard-hero {
  min-height: calc(100svh - 4.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 7.5rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

.hero-text,
.body-copy {
  max-width: 42rem;
  color: var(--body-copy);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.ghost {
  border-color: rgba(21, 21, 21, 0.16);
  background: rgba(255, 255, 255, 0.6);
}

.hero-panel {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 115, 47, 0.92), rgba(13, 15, 14, 0.94)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/d/d8/Dubai_Skyline_on_10_January_2015.jpg/1280px-Dubai_Skyline_on_10_January_2015.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, 0.16) 45% 47%, transparent 47% 100%),
    linear-gradient(45deg, transparent 0 55%, rgba(184, 144, 59, 0.22) 55% 56%, transparent 56% 100%);
}

.flag-strip {
  height: 0.5rem;
  background: linear-gradient(90deg, var(--red) 0 24%, var(--green) 24% 49%, #fff 49% 74%, var(--black) 74% 100%);
}

.metric-grid {
  position: absolute;
  inset: auto 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-grid article {
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.metric-grid span {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 0.9;
}

.metric-grid small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) 12rem 12rem;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(21, 21, 21, 0.06);
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.8rem;
  color: var(--ink);
  background: var(--control-bg);
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.content-section {
  padding: 3rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.muted {
  color: var(--muted);
}

.bank-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bank-card,
.service-card {
  display: grid;
  gap: 1rem;
  min-height: 15rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.bank-card:hover,
.service-card:hover,
.product-card:hover,
.service-result-card:hover,
.asset-card:hover {
  border-color: rgba(0, 115, 47, 0.35);
  box-shadow: 0 18px 46px rgba(21, 21, 21, 0.1);
  transform: translateY(-2px);
}

.bank-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.bank-logo {
  width: 4.6rem;
  height: 2.2rem;
  object-fit: contain;
  border: 1px solid var(--fact-border);
  border-radius: 8px;
  padding: 0.35rem;
  background: #fff;
}

.bank-card h3,
.service-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.arabic {
  color: var(--muted);
  font-family: "Noto Sans Arabic", Inter, sans-serif;
  font-weight: 700;
  direction: rtl;
}

.pill {
  width: fit-content;
  max-width: 100%;
  align-self: start;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: #fff;
  background: var(--black);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pill.national {
  background: var(--green);
}

.pill.foreign {
  background: var(--red);
}

.detail-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: var(--body-copy);
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--fact-border);
  padding-top: 0.45rem;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.mini-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-services span {
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 0.32rem 0.5rem;
  color: var(--chip-text);
  background: var(--chip-bg);
  font-size: 0.74rem;
  font-weight: 700;
}

.bank-link {
  align-self: end;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.bank-link:hover {
  text-decoration: underline;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.directory-product .card-actions {
  gap: 0.55rem;
}

.product-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.45rem;
  border: 1px solid var(--chip-border);
  border-radius: 8px;
  padding: 0.55rem 0.72rem;
  color: var(--green);
  background: color-mix(in srgb, var(--surface) 88%, var(--green) 12%);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.product-action-button:hover,
.product-action-button:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--green) 42%, var(--chip-border));
  box-shadow: 0 10px 20px rgba(21, 21, 21, 0.08);
  text-decoration: none;
}

.product-action-button img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.product-action-button.action-compare {
  border-color: color-mix(in srgb, var(--green) 78%, black 4%);
  color: #fff;
  background: linear-gradient(135deg, var(--green), color-mix(in srgb, var(--green) 82%, #111 18%));
}

.product-action-button.action-compare.is-selected {
  color: var(--green);
  background: color-mix(in srgb, var(--surface) 88%, var(--green) 12%);
}

.product-action-button.action-details {
  border-color: color-mix(in srgb, var(--green) 28%, var(--chip-border));
}

.product-action-button.action-source {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--chip-border));
  color: color-mix(in srgb, var(--gold) 72%, var(--ink));
  background: color-mix(in srgb, var(--surface) 86%, var(--gold) 14%);
}

.service-band {
  border-top: 1px solid var(--line);
}

.comparison-band {
  border-top: 1px solid var(--line);
}

.comparison-toolbar {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) repeat(4, minmax(10rem, 0.65fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-media {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(0, 115, 47, 0.08), rgba(184, 144, 59, 0.16)),
    var(--surface-soft);
  position: relative;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(184, 144, 59, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.product-media img {
  width: 100%;
  max-height: 14rem;
  object-fit: contain;
}

.product-media span {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.product-body {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem 1rem 1rem 0;
}

.product-bank {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3,
.service-result-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.compare-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.compare-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.78fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border-top: 1px solid var(--fact-border);
  padding-top: 0.42rem;
}

.compare-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.compare-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.compare-list.compact div {
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 1fr);
}

.service-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.service-tabs button {
  min-height: 2.6rem;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.8rem;
  color: var(--body-copy);
  background: var(--control-bg);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.service-tabs button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.service-tabs span {
  opacity: 0.75;
}

.service-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.health-card {
  min-height: 11rem;
  display: grid;
  align-content: space-between;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.05);
}

.health-card span {
  color: var(--green);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 0.95;
}

.health-card strong {
  font-size: 1rem;
}

.health-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.service-result-card {
  display: grid;
  gap: 0.8rem;
  min-height: 17rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.asset-card {
  display: grid;
  gap: 0.55rem;
  align-content: space-between;
  min-height: 11rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.asset-card img {
  width: 100%;
  height: 7rem;
  object-fit: contain;
}

.asset-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.service-card {
  min-height: 13rem;
}

.field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.field-list span {
  border: 1px solid #e4e8e4;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  color: #475047;
  background: #f7f8f4;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-hero {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.compact-hero {
  min-height: 24rem;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 8vw, 6rem);
}

.page-card-grid .service-card {
  align-content: start;
}

.service-directory-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.evidence-note {
  width: fit-content;
  margin: -0.25rem 0 0;
  border: 1px solid rgba(184, 144, 59, 0.34);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  color: #6b4f12;
  background: rgba(184, 144, 59, 0.12);
  font-size: 0.74rem;
  font-weight: 800;
}

.page-toolbar {
  grid-template-columns: minmax(16rem, 1fr) 13rem 13rem 10rem;
  margin: 0 0 1rem;
}

.quick-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 0 1rem;
  margin-bottom: 1rem;
}

.quick-filter-bar button {
  flex: 0 0 auto;
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.8rem;
  color: var(--body-copy);
  background: var(--control-bg);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.quick-filter-bar button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.service-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-stats article {
  min-height: 5.3rem;
  display: grid;
  align-content: space-between;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-stats strong {
  color: var(--green);
  font-size: 1.65rem;
  line-height: 1;
}

.service-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.directory-product h3 a,
.comparison-table a {
  color: inherit;
  text-decoration: none;
}

.directory-product {
  position: relative;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: visible;
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--gold) 4%), var(--surface));
}

.directory-product .product-media {
  display: grid;
  align-items: start;
  gap: 0.85rem;
  min-height: 15rem;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 20% 12%, rgba(0, 115, 47, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 248, 244, 0.96));
}

.directory-product .product-media::after {
  inset: 0.85rem;
  border-color: color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: 10px;
}

.directory-product .product-image-wrap > img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(21, 21, 21, 0.12));
}

.product-bank-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.product-bank-logo {
  display: grid;
  place-items: center;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  overflow: hidden;
  border: 1px solid var(--fact-border);
  border-radius: 8px;
  background: #fff;
}

.directory-product .product-bank-logo img {
  width: 100%;
  max-width: 2rem;
  max-height: 1.55rem;
  object-fit: contain;
  filter: none;
}

.product-bank-logo span {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0;
}

.product-showcase-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 70%) minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
  width: 100%;
  min-height: 8.75rem;
}

.product-image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 8rem;
  text-decoration: none;
}

.product-media-title {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.18;
  text-align: center;
}

.product-media-title a {
  color: inherit;
  text-decoration: none;
}

.product-media-title a:hover {
  color: var(--green);
}

.product-media .product-summary-under-title {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: -0.25rem auto 0;
  text-align: center;
}

.product-benefit-icons {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, 1.12rem);
  grid-auto-rows: 1.86rem;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 0.05rem 0 0.95rem;
}

.benefit-icon-chip {
  position: relative;
  display: grid;
  place-items: center;
  grid-column: span 2;
  width: 2.24rem;
  height: 2.48rem;
  border: 0;
  border-radius: 0;
  padding: 0.3rem;
  background: transparent;
  box-shadow: none;
  cursor: help;
  outline: none;
  overflow: visible;
  transform: translateY(0);
  transition: transform 150ms ease, filter 150ms ease;
}

.benefit-icon-chip:nth-child(5n + 1) {
  grid-column: 1 / span 2;
}

.benefit-icon-chip:nth-child(5n + 2) {
  grid-column: 3 / span 2;
}

.benefit-icon-chip:nth-child(5n + 3) {
  grid-column: 5 / span 2;
}

.benefit-icon-chip:nth-child(5n + 4) {
  grid-column: 2 / span 2;
}

.benefit-icon-chip:nth-child(5n + 5) {
  grid-column: 4 / span 2;
}

.benefit-icon-chip::before,
.benefit-icon-chip::after {
  content: "";
  position: absolute;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.benefit-icon-chip::before {
  inset: 0;
  z-index: 0;
  background: color-mix(in srgb, var(--gold) 24%, transparent);
  transition: background 150ms ease;
}

.benefit-icon-chip::after {
  inset: 1px;
  z-index: 1;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  transition: background 150ms ease;
}

.benefit-icon-chip:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 115, 47, 0.16);
}

.benefit-icon-chip:hover,
.benefit-icon-chip:focus,
.benefit-icon-chip:active {
  z-index: 40;
  transform: translateY(-0.08rem);
  filter: drop-shadow(0 10px 14px rgba(21, 21, 21, 0.16));
}

.benefit-icon-chip:hover::before,
.benefit-icon-chip:focus::before,
.benefit-icon-chip:active::before {
  background: color-mix(in srgb, var(--green) 72%, #111 12%);
}

.benefit-icon-chip:hover::after,
.benefit-icon-chip:focus::after,
.benefit-icon-chip:active::after {
  background: color-mix(in srgb, var(--surface) 82%, var(--gold) 12%);
}

.directory-product .benefit-icon-chip img {
  position: relative;
  z-index: 2;
  width: 1.52rem;
  height: 1.52rem;
  max-width: 1.52rem;
  max-height: 1.52rem;
  object-fit: contain;
  filter: none;
}

.benefit-icon-chip small {
  position: absolute;
  left: 50%;
  bottom: -2.05rem;
  z-index: 80;
  width: max-content;
  max-width: min(9rem, calc(100vw - 2rem));
  overflow: hidden;
  overflow-wrap: anywhere;
  transform: translateX(-50%) translateY(-0.25rem);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  color: var(--chip-text);
  background: var(--surface);
  box-shadow: 0 10px 20px rgba(21, 21, 21, 0.12);
  font-size: 0.68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 150ms ease, transform 150ms ease;
}

.benefit-icon-chip:hover small,
.benefit-icon-chip:focus small,
.benefit-icon-chip:active small {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.directory-product .product-body {
  gap: 0.8rem;
  padding: 1rem 1.1rem 1.1rem;
}

.product-data-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--fact-border);
  border-radius: 10px;
  background: var(--surface);
}

.product-data-table div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  border-right: 1px solid var(--fact-border);
  border-bottom: 1px solid var(--fact-border);
  padding: 0.65rem;
}

.product-data-table div:nth-child(2n) {
  border-right: 0;
}

.product-data-table div:last-child {
  border-bottom: 0;
}

.product-data-table dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.product-data-table dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.22;
}

.product-summary {
  margin: 0;
  color: var(--body-copy);
  font-size: 0.9rem;
  line-height: 1.55;
}

.product-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  border: 1px solid rgba(215, 25, 32, 0.25);
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  color: var(--red);
  background: rgba(215, 25, 32, 0.08);
  font-size: 0.74rem;
  font-weight: 900;
}

.product-alert-pill span {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 0.7rem;
  line-height: 1;
}

.product-fact-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.product-fact-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 3.7rem;
  border: 1px solid var(--fact-border);
  border-radius: 10px;
  padding: 0.62rem;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft) 8%);
}

.product-fact-pill .fact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  color: var(--green);
  background: rgba(0, 115, 47, 0.09);
  font-size: 0.68rem;
  font-weight: 950;
}

.product-fact-pill span:last-child {
  min-width: 0;
}

.product-fact-pill small {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.product-fact-pill strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.product-empty-state {
  border: 1px dashed var(--chip-border);
  border-radius: 10px;
  padding: 0.8rem;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.feature-pills span {
  border-color: color-mix(in srgb, var(--green) 20%, var(--chip-border));
  color: color-mix(in srgb, var(--green) 78%, var(--ink));
  background: rgba(0, 115, 47, 0.075);
}

.evidence-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.evidence-pills span {
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--chip-border));
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  color: color-mix(in srgb, var(--gold) 65%, var(--ink));
  background: rgba(184, 144, 59, 0.09);
  font-size: 0.72rem;
  font-weight: 850;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rank-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 115, 47, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  color: var(--green);
  background: rgba(0, 115, 47, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-badges span {
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 0.32rem 0.5rem;
  color: var(--chip-text);
  background: var(--chip-bg);
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-badges {
  margin-bottom: 1rem;
}

.rank-meter {
  width: 100%;
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 115, 47, 0.1);
}

.rank-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.directory-product h3 a:hover,
.comparison-table a:hover {
  color: var(--green);
  text-decoration: underline;
}

.compare-check {
  min-height: 2.4rem;
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.65rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.compare-check input {
  width: 1rem;
  min-height: 1rem;
  margin: 0;
}

.compare-check span {
  font-size: 0.84rem;
  font-weight: 800;
}

.compare-tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 115, 47, 0.28);
  border-radius: 8px;
  background: rgba(0, 115, 47, 0.07);
}

.compare-tray strong,
.compare-tray span {
  font-size: 0.86rem;
}

.compare-tray span {
  border: 1px solid #dbe7db;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  background: #fff;
  font-weight: 700;
}

.compare-tray button {
  min-height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.7rem;
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.comparison-table-wrap {
  min-height: 7rem;
}

.comparison-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comparison-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid #edf0ed;
  padding: 0.8rem;
  vertical-align: top;
  text-align: left;
}

.comparison-table thead th {
  color: #fff;
  background: var(--black);
  font-size: 0.92rem;
}

.comparison-table thead small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.comparison-table tbody th {
  width: 12rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.comparison-table td {
  color: #303830;
  font-weight: 700;
}

.comparison-table td small {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.product-detail-hero {
  min-height: calc(100svh - 4.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.product-detail-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
}

.product-detail-bankline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 900;
}

.detail-bank-logo {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.detail-bank-logo img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.product-detail-media {
  min-height: 26rem;
  display: grid;
  place-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 115, 47, 0.08), rgba(184, 144, 59, 0.2)),
    #fff;
  box-shadow: var(--shadow);
}

.product-detail-media img {
  width: min(100%, 32rem);
  max-height: 24rem;
  object-fit: contain;
}

.product-detail-media span {
  color: var(--muted);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1rem;
}

.detail-main,
.detail-side,
.source-card,
.evidence-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-main {
  display: grid;
  gap: 1rem;
  border: 0;
  background: transparent;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 5rem;
  padding: 1rem;
}

.source-card {
  display: grid;
  gap: 1rem;
  border: 0;
}

.source-card h3,
.evidence-box h3 {
  margin: 0;
}

.detail-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.detail-score-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(0, 115, 47, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 115, 47, 0.08), rgba(184, 144, 59, 0.12)),
    var(--surface);
}

.detail-score-card span {
  color: var(--green);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.detail-score-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.detail-score-card p {
  max-width: 54rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.detail-stat-strip article {
  min-height: 4.75rem;
  display: grid;
  align-content: center;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 115, 47, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-stat-strip strong {
  color: var(--green);
  font-size: 1.55rem;
  line-height: 1;
}

.detail-stat-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-data-section {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.detail-section-heading h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.detail-fact-grid div {
  min-height: 5.5rem;
  display: grid;
  align-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #edf0ed;
  border-radius: 8px;
  background: #fbfcf8;
}

.detail-fact-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-fact-grid dd {
  margin: 0;
  font-weight: 800;
}

.structured-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.structured-fact-card,
.fact-cluster-card,
.source-evidence-card {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #edf0ed;
  border-radius: 8px;
  background: #fbfcf8;
}

.structured-fact-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.structured-fact-card strong,
.source-evidence-card strong {
  font-size: 0.92rem;
}

.structured-fact-card p,
.source-evidence-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.fact-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.fact-cluster-card h4 {
  margin: 0;
  font-size: 1rem;
}

.fact-cluster-card dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.fact-cluster-card dl div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.65rem;
  align-items: start;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.fact-cluster-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.fact-cluster-card dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.source-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.source-evidence-card blockquote {
  margin: 0;
  padding-left: 0.75rem;
  border-left: 3px solid rgba(184, 144, 59, 0.55);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.source-evidence-card a {
  width: fit-content;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.more-evidence {
  display: grid;
  gap: 0.75rem;
}

.more-evidence summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 900;
}

.benefit-copy-list {
  align-items: start;
}

.detail-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 5.5rem));
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.1rem 0;
}

.detail-benefit-item {
  position: relative;
  width: 5.5rem;
  min-height: 5rem;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  padding: 0.65rem 0.5rem;
  border: 1px solid rgba(184, 144, 59, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfcf8);
  cursor: help;
  outline: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.detail-benefit-item:hover,
.detail-benefit-item:focus {
  border-color: rgba(184, 144, 59, 0.72);
  transform: translateY(-0.06rem);
  box-shadow: 0 10px 20px rgba(21, 21, 21, 0.08);
}

.detail-benefit-item img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.detail-benefit-item small {
  width: 100%;
  max-width: 100%;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.evidence-box {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
}

.insight-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-list li {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  line-height: 1.5;
}

.insight-link-list {
  display: grid;
  gap: 0.65rem;
}

.insight-link-list a {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid #e5e9e5;
  border-radius: 8px;
  color: inherit;
  background: #fbfcf8;
  text-decoration: none;
}

.insight-link-list a:hover {
  border-color: rgba(0, 115, 47, 0.35);
}

.insight-link-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.table-preview-stack {
  display: grid;
  gap: 1rem;
}

.table-preview-card {
  display: grid;
  gap: 0.75rem;
}

.table-preview-card strong {
  display: block;
}

.table-preview-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.table-preview-scroll {
  max-height: 18rem;
}

.table-preview {
  min-width: 34rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
}

.ranking-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ranking-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.ranking-table div:last-child {
  border-bottom: 0;
}

.footer {
  padding: 2rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer p {
  width: min(1180px, 100%);
  margin: 0 auto;
  line-height: 1.6;
}

.empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

html[data-theme="dark"] .topbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(13, 18, 15, 0.96), rgba(18, 26, 21, 0.9)),
    linear-gradient(90deg, var(--red), var(--green), #fff, #000);
}

html[data-theme="dark"] .brand small,
html[data-theme="dark"] .topnav a {
  color: var(--muted);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .button.ghost,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .comparison-toolbar,
html[data-theme="dark"] .quick-filter-bar button,
html[data-theme="dark"] .bank-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .service-stats article,
html[data-theme="dark"] .asset-card,
html[data-theme="dark"] .compare-check,
html[data-theme="dark"] .compare-tray button,
html[data-theme="dark"] .comparison-table-scroll,
html[data-theme="dark"] .product-detail-media,
html[data-theme="dark"] .detail-main,
html[data-theme="dark"] .detail-side,
html[data-theme="dark"] .source-card,
html[data-theme="dark"] .evidence-box,
html[data-theme="dark"] .ranking-table,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .insight-list li {
  background: var(--surface);
}

html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .comparison-toolbar,
html[data-theme="dark"] .quick-filter-bar button,
html[data-theme="dark"] .bank-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .service-result-card,
html[data-theme="dark"] .service-stats article,
html[data-theme="dark"] .asset-card,
html[data-theme="dark"] .product-detail-media,
html[data-theme="dark"] .detail-main,
html[data-theme="dark"] .detail-side,
html[data-theme="dark"] .evidence-box,
html[data-theme="dark"] .ranking-table,
html[data-theme="dark"] .empty {
  border-color: var(--line);
}

html[data-theme="dark"] .field-list span,
html[data-theme="dark"] .compare-tray span,
html[data-theme="dark"] .product-badges span,
html[data-theme="dark"] .detail-fact-grid div,
html[data-theme="dark"] .insight-link-list a {
  border-color: var(--chip-border);
  color: var(--chip-text);
  background: var(--chip-bg);
}

html[data-theme="dark"] .product-media,
html[data-theme="dark"] .detail-fact-grid div,
html[data-theme="dark"] .detail-score-card {
  background:
    linear-gradient(135deg, rgba(53, 196, 111, 0.08), rgba(214, 183, 104, 0.12)),
    var(--surface-soft);
}

html[data-theme="dark"] .quick-filter-bar button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

html[data-theme="dark"] .comparison-table thead th {
  background: #0a0f0c;
}

html[data-theme="dark"] .comparison-table th,
html[data-theme="dark"] .comparison-table td,
html[data-theme="dark"] .ranking-table div {
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .comparison-table td,
html[data-theme="dark"] .detail-list dd,
html[data-theme="dark"] .detail-fact-grid dd {
  color: var(--ink);
}

html[data-theme="dark"] .detail-bank-logo,
html[data-theme="dark"] .bank-logo {
  background: #fff;
}

html[data-theme="dark"] .detail-data-section,
html[data-theme="dark"] .detail-stat-strip article,
html[data-theme="dark"] .structured-fact-card,
html[data-theme="dark"] .fact-cluster-card,
html[data-theme="dark"] .source-evidence-card,
html[data-theme="dark"] .detail-benefit-item {
  border-color: rgba(245, 239, 222, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .structured-fact-card p,
html[data-theme="dark"] .source-evidence-card p,
html[data-theme="dark"] .detail-benefit-item small {
  color: var(--ink);
}

html[data-theme="dark"] .evidence-note {
  color: #f1d884;
  background: rgba(214, 183, 104, 0.12);
}

@media (max-width: 900px) {
  .dashboard-hero,
  .split-section,
  .product-detail-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }

  .toolbar,
  .comparison-toolbar,
  .bank-grid,
  .service-grid,
  .comparison-grid,
  .health-grid,
  .service-stats,
  .service-compare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar .search,
  .comparison-toolbar .search {
    grid-column: 1 / -1;
  }

  .asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-side {
    position: static;
  }

  .detail-fact-grid {
    grid-template-columns: 1fr;
  }

  .structured-fact-grid,
  .fact-cluster-grid,
  .source-evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .theme-toggle {
    width: 100%;
  }

  .topnav a {
    min-height: 2.35rem;
    padding-inline: 0.45rem;
    font-size: 0.78rem;
  }

  main {
    width: min(100% - 1rem, 1180px);
  }

  h1 {
    font-size: clamp(2.85rem, 17vw, 4.6rem);
  }

  .compact-hero h1,
  .product-detail-hero h1 {
    font-size: clamp(2.35rem, 15vw, 4rem);
  }

  .hero-panel {
    min-height: 24rem;
  }

  .metric-grid,
  .toolbar,
  .comparison-toolbar,
  .bank-grid,
  .service-grid,
  .comparison-grid,
  .health-grid,
  .service-stats,
  .service-compare-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .toolbar .search,
  .comparison-toolbar .search {
    grid-column: auto;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-body {
    padding: 0 1rem 1rem;
  }

  .directory-product .product-body {
    padding: 1rem;
  }

  .product-fact-pills {
    grid-template-columns: 1fr;
  }

  .product-showcase-row {
    grid-template-columns: minmax(0, 70%) minmax(0, 1fr);
    gap: 0.75rem;
  }

  .detail-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-cluster-card dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .directory-product .product-image-wrap > img {
    width: 100%;
  }

  .directory-product .product-bank-logo img {
    width: 100%;
    max-width: 2rem;
    max-height: 1.55rem;
  }

  .benefit-icon-chip {
    width: 2.16rem;
    height: 2.38rem;
  }

  .directory-product .benefit-icon-chip img {
    width: 1.42rem;
    height: 1.42rem;
    max-width: 1.42rem;
    max-height: 1.42rem;
  }

  .product-data-table {
    grid-template-columns: 1fr;
  }

  .product-data-table div,
  .product-data-table div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--fact-border);
  }

  .product-data-table div:last-child {
    border-bottom: 0;
  }

  .product-media-title {
    font-size: 1rem;
  }

  .product-media {
    min-height: 12rem;
  }

  .product-detail-media {
    min-height: 18rem;
    padding: 1rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

/* Last-mile overrides for the UAEBanks.org rewrite. */
body {
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.98), var(--paper) 35%, var(--surface-soft));
}

html[data-theme="dark"] body {
  background: linear-gradient(180deg, #09131f, var(--paper) 42%, #08110d);
}

.topbar {
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 1px 0 var(--line);
}

.home-hero,
.bank-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: min(760px, calc(100svh - 5rem));
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.home-hero h1,
.page-hero h1,
.bank-profile-hero h1,
.product-detail-hero h1,
.compact-hero h1 {
  max-width: 15ch;
  color: var(--navy);
  font-size: clamp(2.35rem, 5.8vw, 4.8rem);
  line-height: 1;
}

.page-hero,
.compact-hero {
  min-height: 18rem;
}

.comparison-toolbar.page-toolbar {
  grid-template-columns: repeat(6, minmax(9rem, 1fr));
}

.comparison-toolbar.page-toolbar .search {
  grid-column: span 2;
}

.bank-card,
.service-card,
.product-card,
.service-result-card,
.health-card,
.asset-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.compare-tray {
  position: sticky;
  bottom: 0.75rem;
  z-index: 30;
  box-shadow: var(--shadow);
}

.methodology-grid,
.evidence-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .home-hero,
  .bank-profile-hero,
  .methodology-grid,
  .evidence-section {
    grid-template-columns: 1fr;
  }

  .comparison-toolbar.page-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topnav {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-hero h1,
  .page-hero h1,
  .bank-profile-hero h1,
  .product-detail-hero h1,
  .compact-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .comparison-toolbar.page-toolbar {
    grid-template-columns: 1fr;
  }
}

/* 2026 premium UI refresh. Original design inspired by high-end SaaS rhythm, not copied assets. */
:root {
  --ink: #111521;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.1);
  --paper: #f6f8fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-soft: #eef3fb;
  --surface-raised: rgba(255, 255, 255, 0.94);
  --control-bg: rgba(255, 255, 255, 0.92);
  --body-copy: #475467;
  --fact-border: rgba(15, 23, 42, 0.1);
  --chip-bg: rgba(16, 24, 40, 0.06);
  --chip-border: rgba(16, 24, 40, 0.1);
  --chip-text: #344054;
  --green: #4f7cff;
  --blue: #1d4ed8;
  --gold: #f2c14e;
  --red: #f04438;
  --black: #090b12;
  --navy: #101828;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 28px 90px rgba(13, 18, 30, 0.16);
  --shadow-soft: 0 18px 60px rgba(13, 18, 30, 0.12);
  --shadow-card: 0 16px 46px rgba(13, 18, 30, 0.08);
}

html[data-theme="dark"] {
  --ink: #f8fbff;
  --muted: #9aa8bd;
  --line: rgba(255, 255, 255, 0.12);
  --paper: #070910;
  --surface: transparent;
  --surface-soft: #0d111c;
  --surface-raised: rgba(18, 24, 38, 0.86);
  --control-bg: rgba(8, 12, 22, 0.78);
  --body-copy: #c4ccda;
  --fact-border: rgba(255, 255, 255, 0.1);
  --chip-bg: rgba(255, 255, 255, 0.08);
  --chip-border: rgba(255, 255, 255, 0.12);
  --chip-text: #e8eef8;
  --green: #6f8cff;
  --blue: #3b82f6;
  --gold: #f3cb61;
  --navy: #ffffff;
  --shadow: 0 32px 110px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.38);
  --shadow-card: 0 18px 56px rgba(0, 0, 0, 0.26);
}

body {
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, color-mix(in srgb, var(--green) 22%, transparent), transparent 34rem),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 44%, var(--surface-soft) 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 16% 2%, rgba(88, 118, 255, 0.32), transparent 32rem),
    radial-gradient(circle at 86% 6%, rgba(98, 240, 214, 0.2), transparent 30rem),
    linear-gradient(180deg, #04050a 0%, #090c14 46%, #070910 100%);
}

main {
  width: min(100% - 2rem, 1220px);
}

.topbar {
  top: 0.75rem;
  width: min(100% - 2rem, 1220px);
  margin: 0 auto 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(26px) saturate(1.15);
}

.brand {
  min-width: max-content;
  color: var(--ink);
  padding: 0.35rem 0.65rem;
  border: 1px solid color-mix(in srgb, #ffffff 26%, var(--line));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.brand-full-logo {
  display: block;
  width: clamp(13rem, 21vw, 20rem);
  height: auto;
  max-height: 3.75rem;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
}

.brand-mark {
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, var(--blue), transparent 34%),
    linear-gradient(135deg, var(--green), #9c6bff 62%, var(--gold));
  box-shadow: 0 12px 34px color-mix(in srgb, var(--green) 22%, transparent);
}

.topnav {
  display: flex;
  gap: 0.18rem;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-bg) 62%, transparent);
}

.topnav a,
.nav-action,
.theme-toggle {
  border-radius: 999px;
  color: var(--muted);
}

.topnav a:hover,
.topnav a:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.theme-toggle:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-raised) 84%, transparent);
}

.nav-action {
  color: #ffffff;
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.theme-toggle {
  min-width: 4.2rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-raised) 78%, transparent);
}

.cosmo-hero {
  position: relative;
  min-height: min(820px, calc(100svh - 5.5rem));
  padding-top: clamp(3.2rem, 8vw, 7rem);
}

.cosmo-hero::before {
  content: "";
  position: absolute;
  inset: 5% -8% auto auto;
  width: min(44vw, 34rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 12%, transparent), transparent 62%);
  pointer-events: none;
}

.launch-pill {
  width: fit-content;
  padding: 0.42rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 999px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  font-size: 0.84rem;
  font-weight: 800;
}

.home-hero h1 {
  max-width: 11ch;
  color: var(--navy);
  font-size: clamp(2.85rem, 7.2vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 42rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.global-search {
  max-width: 44rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.global-search span {
  color: var(--muted);
}

.global-search input {
  min-height: 3.2rem;
  border-radius: 18px;
}

.global-search-results {
  max-width: 44rem;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.finance-orbit {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-video-panel {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-video-panel::before {
  content: "";
  position: absolute;
  inset: 9% 2%;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
  border-radius: 34px;
  background:
    radial-gradient(circle at 35% 15%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 45%),
    radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 45%),
    color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-intro-video {
  position: relative;
  z-index: 1;
  width: min(100%, 39rem);
  aspect-ratio: 16 / 9;
  border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--line));
  border-radius: 28px;
  object-fit: cover;
  background: #020617;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.orbit-glow {
  position: absolute;
  width: min(82%, 28rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--blue) 35%, transparent), transparent 36%),
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--green) 25%, transparent), transparent 55%);
  filter: blur(8px);
  opacity: 0.9;
  z-index: -2;
}

.orbit-ring {
  position: absolute;
  width: min(92%, 31rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 70px color-mix(in srgb, var(--blue) 12%, transparent);
  z-index: -1;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent);
  border-radius: 50%;
}

.orbit-ring::after {
  inset: 28%;
}

.orbit-card {
  position: absolute;
  display: grid;
  gap: 0.45rem;
  width: min(78%, 20rem);
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 88%, transparent), color-mix(in srgb, var(--surface) 76%, transparent));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.orbit-card-main {
  top: 26%;
  left: 4%;
}

.orbit-card-side {
  right: 2%;
  bottom: 21%;
}

.orbit-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.orbit-card strong {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 0.98;
}

.orbit-card small {
  color: var(--muted);
  font-weight: 700;
}

.brand-orbit-strip {
  margin: -1rem 0 clamp(2.2rem, 5vw, 4rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.brand-orbit-strip .eyebrow {
  margin: 0 0 0.85rem;
}

.bank-logo-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.7rem;
}

.bank-logo-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 4rem;
  padding: 0.74rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-raised) 78%, transparent);
  text-decoration: none;
}

.bank-logo-pill:hover {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  transform: translateY(-2px);
}

.bank-logo-pill img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}

.bank-logo-pill span {
  color: var(--body-copy);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
}

.content-section {
  margin-block: clamp(2.2rem, 6vw, 5rem);
}

.checker-preview {
  border-radius: 32px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 16%, transparent), color-mix(in srgb, var(--blue) 10%, transparent)),
    color-mix(in srgb, var(--surface) 84%, transparent);
  padding: clamp(1rem, 3vw, 1.6rem);
}

.cosmo-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cosmo-feature-grid article,
.service-card-modern,
.bank-card,
.product-card,
.service-result-card,
.detail-data-section,
.source-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 82%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(22px);
}

.cosmo-feature-grid article {
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.cosmo-feature-grid span,
.service-count {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.cosmo-feature-grid h3,
.service-card h3,
.product-card h3,
.bank-card h3 {
  color: var(--ink);
}

.cosmo-feature-grid p,
.service-short-copy,
.bank-card p,
.product-card p {
  color: var(--body-copy);
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.service-card-modern {
  position: relative;
  min-height: 21rem;
  padding: 1rem;
  overflow: hidden;
}

.service-card-modern::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 11rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 28%, transparent), transparent 62%);
  pointer-events: none;
}

.service-card-visual {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--gold) 44%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--gold) 44%, transparent), transparent 46%),
    linear-gradient(135deg, color-mix(in srgb, var(--green) 28%, transparent), color-mix(in srgb, var(--blue) 18%, transparent));
}

.service-card-visual span {
  color: var(--ink);
  font-weight: 900;
}

.field-list {
  gap: 0.45rem;
}

.field-list span,
.mini-services span,
.quality-chips span {
  border-radius: 999px;
  color: var(--chip-text);
  background: var(--chip-bg);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--blue) 20%, transparent);
}

.button.secondary,
.button.ghost,
.bank-link,
.product-action-button {
  border-color: var(--line);
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
}

.bank-link:hover,
.button.secondary:hover,
.button.ghost:hover,
.product-action-button:hover {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface-raised));
}

.comparison-grid.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.featured-grid .product-card:nth-child(n + 7) {
  display: none;
}

.home-page .featured-grid .product-card {
  display: block;
  min-height: 0;
}

.home-page .featured-grid .product-body {
  display: none;
}

.home-page .featured-grid .product-media {
  min-height: clamp(12rem, 23vw, 18rem);
  border-bottom: 0;
}

.home-page .featured-grid .product-media img {
  width: min(86%, 20rem);
  max-height: 14rem;
  object-fit: contain;
}

.product-media {
  background:
    radial-gradient(circle at 24% 18%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--green) 13%, transparent), color-mix(in srgb, var(--gold) 10%, transparent)),
    color-mix(in srgb, var(--surface-soft) 92%, transparent);
}

.product-card .product-media img {
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18));
}

.compare-list {
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
}

.compare-list dt {
  color: var(--muted);
}

.compare-list dd {
  color: var(--ink);
}

.footer {
  width: min(100% - 2rem, 1220px);
  margin: 4rem auto 1.2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.footer::before {
  content: "";
  display: block;
  width: min(20rem, 72vw);
  height: 4.2rem;
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94) url("/assets/brand/uaebanks-full-logo.png") center / 88% auto no-repeat;
}

@media (max-width: 920px) {
  main {
    width: min(100% - 1.25rem, 1220px);
  }

  .topbar {
    position: sticky;
    top: 0.5rem;
    width: min(100% - 1rem, 1220px);
    align-items: stretch;
    border-radius: 26px;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .home-hero,
  .bank-profile-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.4rem;
  }

  .home-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .finance-orbit {
    min-height: 26rem;
  }

  .cosmo-feature-grid {
    grid-template-columns: 1fr;
  }

  .checker-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .topbar {
    display: grid;
    position: sticky;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.72rem;
    padding-right: 6.6rem;
  }

  .brand small {
    display: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 13.25rem;
    overflow: hidden;
  }

  .brand-full-logo {
    width: min(10.8rem, 100%);
    max-height: 2.7rem;
  }

  .brand strong {
    display: block;
    max-width: 9.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    position: absolute;
    top: 0.72rem;
    right: 3.85rem;
    z-index: 2;
  }

  .theme-toggle {
    position: absolute;
    top: 0.72rem;
    right: 0.72rem;
    z-index: 2;
  }

  .nav-toggle {
    display: grid;
  }

  .topnav {
    grid-column: 1 / -1;
    order: 3;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 22px;
    overflow: visible;
  }

  .topbar.is-nav-open .topnav {
    display: grid;
  }

  .topnav a,
  .nav-action {
    width: 100%;
    justify-content: flex-start;
    min-height: 2.75rem;
    padding-inline: 0.85rem;
  }

  .theme-toggle {
    width: auto;
    min-width: 2.7rem;
    max-width: 2.7rem;
    padding: 0;
  }

  .theme-toggle [data-theme-toggle-label] {
    position: relative;
    display: grid;
    place-items: center;
    font-size: 0;
  }

  .theme-toggle [data-theme-toggle-label]::before {
    font-size: 0.88rem;
    font-weight: 900;
  }

  .home-hero h1 {
    max-width: 9ch;
    font-size: clamp(2.65rem, 13.5vw, 3.7rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .finance-orbit,
  .hero-video-panel {
    min-height: 22rem;
  }

  .orbit-card {
    width: min(88%, 18rem);
  }

  .orbit-card-main {
    left: 0;
    top: 18%;
  }

  .orbit-card-side {
    right: 0;
    bottom: 14%;
  }

  .bank-logo-rail {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
  }

  .bank-logo-pill {
    min-width: 11rem;
    scroll-snap-align: start;
  }
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
  color: var(--ink);
}

.nav-toggle span {
  grid-area: 1 / 1;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
  transform: translateY(-0.3rem);
}

.nav-toggle span + span {
  margin-top: 0;
  transform: translateY(0.3rem);
}

.topbar.is-nav-open .nav-toggle span:first-child {
  transform: rotate(45deg);
}

.topbar.is-nav-open .nav-toggle span + span {
  margin-top: -2px;
  transform: rotate(-45deg);
}

.topbar.is-nav-open {
  background:
    radial-gradient(circle at 25% 0%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 13rem),
    color-mix(in srgb, var(--surface) 88%, transparent);
}

@media (max-width: 620px) {
  .topbar.is-nav-open {
    border-radius: 30px;
    box-shadow: 0 26px 76px rgba(0, 0, 0, 0.34);
  }

  .topbar.is-nav-open .topnav {
    margin-top: 0.75rem;
    padding: 0.7rem;
    border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
    border-radius: 24px;
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 90%, transparent), color-mix(in srgb, var(--surface) 78%, transparent));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .topbar.is-nav-open .topnav a,
  .topbar.is-nav-open .nav-action {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
  }
}

@media (max-width: 620px) {
  .theme-toggle [data-theme-toggle-label]::before {
    content: "";
    display: block;
    width: 1.02rem;
    height: 1.02rem;
    margin: auto;
    border: 2px solid currentColor;
    border-radius: 50% 50% 44% 44%;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 0%, transparent);
  }

  .theme-toggle [data-theme-toggle-label]::after {
    content: "";
    position: absolute;
    bottom: 0.18rem;
    width: 0.58rem;
    height: 0.24rem;
    border-radius: 0 0 6px 6px;
    background: currentColor;
  }

  .theme-toggle[data-theme-state="dark"] [data-theme-toggle-label]::before {
    color: var(--gold);
    background: color-mix(in srgb, var(--gold) 42%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 58%, transparent);
  }

  .theme-toggle[data-theme-state="light"] [data-theme-toggle-label]::before {
    color: var(--muted);
    background: transparent;
  }
}

.playing-card-link {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: clamp(15rem, 25vw, 21rem);
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 14%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 92%, transparent), color-mix(in srgb, var(--surface) 70%, transparent));
  box-shadow: var(--shadow-card);
  text-decoration: none;
  overflow: hidden;
  transform: rotate(calc((var(--card-index) - 3.5) * 1.15deg)) translateY(0);
  animation: cardFloat 5s ease-in-out infinite;
  animation-delay: calc(var(--card-index) * -0.42s);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  backdrop-filter: blur(20px);
}

.playing-card-link:hover {
  z-index: 3;
  border-color: color-mix(in srgb, var(--blue) 52%, var(--line));
  box-shadow: 0 28px 80px color-mix(in srgb, var(--blue) 18%, rgba(0, 0, 0, 0.2));
  transform: rotate(0deg) translateY(-0.7rem) scale(1.03);
}

.playing-card-link::before,
.playing-card-link::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  border-radius: 22px;
  pointer-events: none;
}

.playing-card-link::after {
  inset: auto 1rem 1rem auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 14%, transparent);
}

.playing-card-bank,
.playing-card-name {
  position: relative;
  z-index: 1;
  color: var(--body-copy);
  font-size: 0.82rem;
  font-weight: 900;
}

.playing-card-name {
  max-width: 16rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.15;
}

.playing-card-image {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 9rem;
}

.playing-card-image img {
  width: min(92%, 18rem);
  max-height: 11rem;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.22));
}

@keyframes cardFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .playing-card-link {
    animation: none;
  }
}

.bank-card-modern {
  padding: 0;
  overflow: hidden;
}

.bank-card-cover {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 92%, transparent), color-mix(in srgb, var(--surface-raised) 76%, transparent));
}

.bank-logo-large {
  width: min(72%, 13rem);
  max-height: 5.8rem;
  object-fit: contain;
  padding: 0.7rem;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.bank-card-copy {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1rem 0.2rem;
}

.bank-card-title-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
}

.bank-card-location {
  margin: 0;
  color: var(--body-copy);
}

.bank-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bank-stat-chips span {
  padding: 0.45rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--chip-text);
  background: var(--chip-bg);
  font-size: 0.78rem;
  font-weight: 900;
}

.bank-card-modern .mini-services,
.bank-card-modern .card-actions {
  padding-inline: 1rem;
}

.bank-card-modern .card-actions {
  padding-bottom: 1rem;
}

.site-modal::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.site-modal {
  padding: 0;
}

.modal-card,
.eligibility-card {
  width: min(100% - 1.25rem, 42rem);
  max-height: min(86svh, 52rem);
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-raised) 96%, transparent);
  box-shadow: var(--shadow);
}

.modal-card label,
.eligibility-card label,
.modal-actions,
.form-row,
.checker-results {
  margin-top: 0.85rem;
}

.eligibility-card label {
  padding-bottom: 0.45rem;
}

.eligibility-card label small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.bank-select-preview {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
}

.bank-select-preview[hidden] {
  display: none;
}

.bank-select-preview img,
.bank-logo-dot {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
}

.bank-select-preview img {
  object-fit: contain;
  background: #ffffff;
}

.bank-logo-dot {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  font-size: 0.7rem;
  font-weight: 900;
}

.modal-card h2,
.eligibility-card h2 {
  margin: 0.25rem 0 0.65rem;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
}

.modal-card input,
.modal-card select,
.modal-card textarea,
.eligibility-card input,
.eligibility-card select,
.eligibility-card textarea {
  width: 100%;
}

.report-context {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--body-copy);
  background: var(--chip-bg);
  font-weight: 800;
}

.product-detail-copy,
.source-card,
.detail-data-section,
.checker-preview,
.content-section {
  scroll-margin-top: 7rem;
}

@media (max-width: 620px) {
  .nav-toggle {
    display: grid;
  }
}

/* Final interaction/layout pass. */
.cosmo-hero {
  grid-template-columns: minmax(0, 0.3fr) minmax(32rem, 0.7fr);
}

.home-hero h1 {
  font-size: clamp(1.95rem, 4vw, 3.25rem);
}

.hero-text {
  max-width: 34rem;
}

.hero-intro-video {
  width: min(60vw, 48rem);
}

.content-section,
.detail-data-section,
.source-card,
.product-detail-copy {
  margin-block: clamp(1.25rem, 3.2vw, 2.5rem);
}

.home-page .comparison-grid.featured-grid {
  min-height: clamp(17rem, 30vw, 24rem);
}

.playing-card-link {
  --fan-offset: calc((var(--card-index) - 3.5) * clamp(2.4rem, 5vw, 5.2rem));
}

.home-page .featured-grid:hover .playing-card-link,
.home-page .featured-grid:focus-within .playing-card-link,
.home-page .featured-grid.has-touch-active .playing-card-link {
  --fan-offset: calc((var(--card-index) - 3.5) * clamp(3rem, 6vw, 6.4rem));
}

.playing-card-link:hover,
.playing-card-link:focus-visible,
.playing-card-link.is-touch-active {
  transform: translateX(var(--fan-offset)) translateY(-1.25rem) rotate(0deg) scale(1.14);
}

.home-page .featured-grid .playing-card-link .product-media img,
.home-page .featured-grid .playing-card-link > img,
.home-page .featured-grid .playing-card-link > .bank-cover-fallback {
  width: clamp(9rem, 16vw, 15.25rem);
}

.comparison-toolbar.page-toolbar {
  grid-template-columns: minmax(16rem, 1fr) auto;
  align-items: end;
}

.comparison-toolbar.page-toolbar > label:not(.search),
.comparison-toolbar.page-toolbar > button:not(.toolbar-more-button),
.comparison-toolbar.page-toolbar > select {
  display: none;
}

.comparison-toolbar.page-toolbar.is-expanded {
  grid-template-columns: minmax(16rem, 1fr) repeat(4, minmax(9rem, 0.7fr)) auto;
}

.comparison-toolbar.page-toolbar.is-expanded > label,
.comparison-toolbar.page-toolbar.is-expanded > button {
  display: grid;
}

.comparison-toolbar.page-toolbar .search {
  grid-column: auto;
}

.toolbar-more-button {
  display: inline-flex;
  min-height: 3.25rem;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-raised) 84%, transparent);
  font-weight: 900;
}

.toolbar-more-icon {
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.1rem);
  transition: transform 160ms ease;
}

.toolbar-more-button[aria-expanded="true"] .toolbar-more-icon {
  transform: rotate(225deg) translate(-0.1rem, -0.05rem);
}

.floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 999px;
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-0.18rem) scale(1.04);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.34);
}

.floating-whatsapp svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.benefit-copy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.65rem 1rem;
}

.benefit-copy-list span {
  position: relative;
  display: block;
  padding: 0.7rem 0.85rem 0.7rem 1.9rem;
  border-radius: 12px;
  line-height: 1.45;
}

.benefit-copy-list span::before {
  content: "";
  position: absolute;
  left: 0.82rem;
  top: 1.18rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--blue);
}

html[data-theme="dark"] .detail-data-section,
html[data-theme="dark"] .benefit-detail-section,
html[data-theme="dark"] .structured-fact-card,
html[data-theme="dark"] .fact-cluster-card,
html[data-theme="dark"] .source-evidence-card,
html[data-theme="dark"] .detail-fact-grid div,
html[data-theme="dark"] .detail-benefit-item,
html[data-theme="dark"] .field-list span,
html[data-theme="dark"] .benefit-copy-list span {
  border-color: rgba(255, 255, 255, 0.09);
  color: #f8fafc;
  background: transparent;
}

html[data-theme="dark"] .detail-data-section h3,
html[data-theme="dark"] .detail-data-section h4,
html[data-theme="dark"] .detail-data-section p,
html[data-theme="dark"] .detail-data-section dd,
html[data-theme="dark"] .detail-benefit-item small {
  color: #f8fafc;
}

html[data-theme="dark"] .detail-data-section dt,
html[data-theme="dark"] .source-evidence-card blockquote {
  color: #cbd5e1;
}

@media (max-width: 920px) {
  .cosmo-hero {
    grid-template-columns: 1fr;
  }

  .hero-intro-video {
    width: min(100%, 42rem);
  }

  .comparison-toolbar.page-toolbar,
  .comparison-toolbar.page-toolbar.is-expanded {
    grid-template-columns: 1fr auto;
  }

  .comparison-toolbar.page-toolbar.is-expanded > label:not(.search) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .home-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
  }

  .hero-actions {
    display: flex;
    grid-template-columns: none;
    gap: 0.45rem;
    align-items: stretch;
  }

  .hero-actions .button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 0.5rem;
    font-size: clamp(0.72rem, 3.2vw, 0.84rem);
    white-space: nowrap;
  }

  .home-page .comparison-grid.featured-grid {
    min-height: 14.25rem;
    overflow: visible;
    touch-action: pan-y;
  }

  .playing-card-link {
    --fan-offset: calc((var(--card-index) - 3.5) * clamp(1.1rem, 7vw, 2.25rem));
  }

  .home-page .featured-grid:hover .playing-card-link,
  .home-page .featured-grid:focus-within .playing-card-link,
  .home-page .featured-grid.has-touch-active .playing-card-link {
    --fan-offset: calc((var(--card-index) - 3.5) * clamp(1.25rem, 8vw, 2.65rem));
  }

  .home-page .featured-grid .playing-card-link .product-media img,
  .home-page .featured-grid .playing-card-link > img,
  .home-page .featured-grid .playing-card-link > .bank-cover-fallback {
    width: clamp(5.9rem, 31vw, 8.2rem);
  }

  .floating-whatsapp {
    width: 3.25rem;
    height: 3.25rem;
  }
}

html[data-theme="dark"] .detail-data-section,
html[data-theme="dark"] .benefit-detail-section,
html[data-theme="dark"] .structured-fact-card,
html[data-theme="dark"] .fact-cluster-card,
html[data-theme="dark"] .source-evidence-card,
html[data-theme="dark"] .detail-fact-grid div,
html[data-theme="dark"] .detail-benefit-item,
html[data-theme="dark"] .field-list span,
html[data-theme="dark"] .benefit-copy-list span,
html[data-theme="dark"] body[data-page="product-detail"] .content-section,
html[data-theme="dark"] body[data-page="product-detail"] .product-detail-copy,
html[data-theme="dark"] body[data-page="product-detail"] .source-card {
  background: transparent;
}

.product-detail-copy,
html[data-theme="dark"] body[data-page="product-detail"] .product-detail-copy {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-detail-media,
html[data-theme="dark"] .product-detail-media {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-detail-media img {
  width: min(100%, 36rem);
  max-height: none;
  filter: drop-shadow(0 24px 34px rgba(2, 6, 23, 0.24));
}

/* Must remain after all prior overrides. */
.hero-intro-video {
  width: min(60vw, 48rem) !important;
}

.comparison-toolbar.page-toolbar {
  grid-template-columns: minmax(16rem, 1fr) 5.25rem;
}

.comparison-toolbar.page-toolbar.is-expanded {
  grid-template-columns: minmax(16rem, 1fr) repeat(5, minmax(9rem, 0.7fr)) 5.25rem;
}

.comparison-toolbar.page-toolbar .toolbar-more-button,
.comparison-toolbar.page-toolbar.is-expanded .toolbar-more-button {
  display: inline-flex;
  grid-column: -2 / -1;
  grid-row: 1;
  width: 5.25rem;
  min-height: 3.25rem;
  color: #ffffff;
  border-color: color-mix(in srgb, var(--blue) 58%, transparent);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--blue) 18%, transparent);
}

.comparison-toolbar.page-toolbar.is-expanded > label:not(.search) {
  display: grid;
}

.product-media,
.directory-product .product-media,
html[data-theme="dark"] .product-media,
html[data-theme="dark"] .directory-product .product-media {
  background: transparent;
}

.directory-product .product-media {
  border-bottom-color: color-mix(in srgb, var(--line) 58%, transparent);
}

.directory-product .product-media::after {
  display: none;
}

@media (max-width: 620px) {
  .hero-intro-video {
    width: min(100%, 42rem) !important;
  }

  .comparison-toolbar.page-toolbar,
  .comparison-toolbar.page-toolbar.is-expanded {
    grid-template-columns: minmax(0, 1fr) 5.25rem;
  }

  .comparison-toolbar.page-toolbar .toolbar-more-button,
  .comparison-toolbar.page-toolbar.is-expanded .toolbar-more-button {
    grid-column: 2;
  }

  .comparison-toolbar.page-toolbar.is-expanded > label:not(.search) {
    grid-column: 1 / -1;
  }

  .directory-product {
    overflow: hidden;
  }

  .directory-product .product-media {
    gap: 0.65rem;
    min-height: 0;
    padding: 0.9rem 0.9rem 0.5rem;
  }

  .product-showcase-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    min-height: 0;
  }

  .product-image-wrap {
    min-height: 0;
  }

  .directory-product .product-image-wrap > img {
    width: min(100%, 18rem);
    margin-inline: auto;
  }

  .product-benefit-icons {
    display: flex;
    justify-content: flex-start;
    gap: 0.15rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.15rem 0 1.85rem;
    scroll-snap-type: x proximity;
  }

  .benefit-icon-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .directory-product .product-body {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .product-data-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 12px;
  }

  .product-data-table div,
  .product-data-table div:nth-child(2n) {
    min-height: 3.65rem;
    border-right: 1px solid var(--fact-border);
    border-bottom: 1px solid var(--fact-border);
    padding: 0.52rem;
  }

  .product-data-table div:nth-child(2n) {
    border-right: 0;
  }

  .product-data-table div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .product-data-table dt {
    font-size: 0.62rem;
  }

  .product-data-table dd {
    font-size: 0.78rem;
    line-height: 1.18;
  }
}

.bank-card-cover {
  min-height: 11rem;
  background: transparent;
}

.bank-logo.bank-logo-large,
.bank-logo-large {
  width: min(86%, 18rem);
  max-height: 8.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bank-card-modern .card-actions .button {
  flex: 1 1 auto;
}

.hero-intro-video {
  width: min(50vw, 42rem) !important;
}

.bank-card-cover {
  min-height: 13rem;
  padding: 0.75rem;
  background: transparent !important;
}

.bank-logo.bank-logo-large,
.bank-logo-large {
  width: min(96%, 24rem);
  max-height: 11rem;
  background: transparent !important;
}

.comparison-toolbar.page-toolbar .toolbar-more-button,
.comparison-toolbar.page-toolbar.is-expanded .toolbar-more-button {
  display: inline-flex;
}

html[data-theme="dark"] body[data-page="product-detail"] .content-section,
html[data-theme="dark"] body[data-page="product-detail"] .product-detail-copy,
html[data-theme="dark"] body[data-page="product-detail"] .source-card {
  border-color: rgba(255, 255, 255, 0.09);
  color: #f8fafc;
  background: transparent;
}

/* Final homepage polish: bare brand, direct hero video, and image-only card fan. */
.brand {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-full-logo {
  width: clamp(12rem, 18vw, 17rem);
  max-height: 3.25rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
  transition: filter 180ms ease, opacity 180ms ease;
}

html[data-theme="dark"] .brand-full-logo {
  filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}

.footer::before {
  border: 0;
  border-radius: 0;
  background: url("/assets/brand/uaebanks-full-logo.png") center / contain no-repeat;
}

html[data-theme="dark"] .footer::before {
  filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
}

.cosmo-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 0.78fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 4.5rem);
}

.home-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4.8vw, 3.95rem);
  line-height: 0.98;
}

.hero-intro-video {
  justify-self: end;
  width: min(100%, 37rem);
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 24px 72px rgba(2, 6, 23, 0.26);
}

.hero-video-panel,
.hero-video-panel::before {
  display: none;
}

.home-page .comparison-grid.featured-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: clamp(13rem, 25vw, 19rem);
  padding: 0;
  gap: 0;
  overflow: visible;
  perspective: 1200px;
}

.playing-card-link {
  --fan-offset: calc((var(--card-index) - 3.5) * clamp(1.85rem, 4vw, 3.95rem));
  --fan-rotate: calc((var(--card-index) - 3.5) * -5deg);
  grid-area: 1 / 1;
  position: relative;
  z-index: calc(10 + var(--card-index));
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  overflow: visible;
  transform: translateX(var(--fan-offset)) translateY(0) rotate(var(--fan-rotate));
  animation: cardFloat 5.4s ease-in-out infinite;
  animation-delay: calc(var(--card-index) * -0.32s);
  transform-origin: 50% 92%;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 240ms ease, z-index 0s linear 120ms;
  backdrop-filter: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.playing-card-link::before,
.playing-card-link::after {
  display: none;
  content: none;
}

.home-page .featured-grid:hover .playing-card-link,
.home-page .featured-grid:focus-within .playing-card-link,
.home-page .featured-grid.has-touch-active .playing-card-link {
  --fan-offset: calc((var(--card-index) - 3.5) * clamp(2.4rem, 5.3vw, 5.2rem));
  --fan-rotate: calc((var(--card-index) - 3.5) * -7deg);
}

.playing-card-link:hover,
.playing-card-link:focus-visible,
.playing-card-link.is-touch-active {
  z-index: 40;
  outline: 0;
  filter: drop-shadow(0 22px 28px rgba(2, 6, 23, 0.26));
  transform: translateX(var(--fan-offset)) translateY(-1rem) rotate(0deg) scale(1.11);
}

.home-page .featured-grid .playing-card-link .product-media {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
}

.home-page .featured-grid .playing-card-link .product-media img {
  display: block;
  width: clamp(7rem, 13vw, 12.4rem);
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(2, 6, 23, 0.22));
}

.home-page .featured-grid .playing-card-link > img,
.home-page .featured-grid .playing-card-link > .bank-cover-fallback {
  display: block;
  width: clamp(7rem, 13vw, 12.4rem);
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(2, 6, 23, 0.22));
}

.home-page .featured-grid .playing-card-link > .bank-cover-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 1.58;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  font-weight: 900;
}

@media (max-width: 920px) {
  .cosmo-hero {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .home-hero h1 {
    font-size: clamp(2.15rem, 9vw, 3.35rem);
  }

  .hero-intro-video {
    justify-self: center;
    width: min(100%, 34rem);
  }
}

@media (max-width: 620px) {
  .brand {
    max-width: 12rem;
  }

  .brand-full-logo {
    width: min(10.7rem, 100%);
    max-height: 2.5rem;
  }

  .home-hero h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .home-page .comparison-grid.featured-grid {
    min-height: 10.8rem;
    overflow-x: clip;
  }

  .playing-card-link {
    --fan-offset: calc((var(--card-index) - 3.5) * clamp(0.9rem, 6vw, 1.75rem));
    --fan-rotate: calc((var(--card-index) - 3.5) * -6deg);
  }

  .home-page .featured-grid:hover .playing-card-link,
  .home-page .featured-grid:focus-within .playing-card-link,
  .home-page .featured-grid.has-touch-active .playing-card-link {
    --fan-offset: calc((var(--card-index) - 3.5) * clamp(1rem, 7vw, 2rem));
  }

  .home-page .featured-grid .playing-card-link .product-media img,
  .home-page .featured-grid .playing-card-link > img,
  .home-page .featured-grid .playing-card-link > .bank-cover-fallback {
    width: clamp(4.7rem, 25vw, 6.9rem);
  }
}

/* Must remain last: requested final UI overrides. */
.cosmo-hero {
  grid-template-columns: minmax(0, 0.3fr) minmax(32rem, 0.7fr);
}

.home-hero h1 {
  font-size: clamp(1.95rem, 4vw, 3.25rem);
}

.hero-intro-video {
  width: min(70vw, 54rem);
}

.home-page .comparison-grid.featured-grid {
  min-height: clamp(17rem, 30vw, 24rem);
}

.playing-card-link {
  --fan-offset: calc((var(--card-index) - 3.5) * clamp(2.4rem, 5vw, 5.2rem));
}

.home-page .featured-grid:hover .playing-card-link,
.home-page .featured-grid:focus-within .playing-card-link,
.home-page .featured-grid.has-touch-active .playing-card-link {
  --fan-offset: calc((var(--card-index) - 3.5) * clamp(3rem, 6vw, 6.4rem));
}

.playing-card-link:hover,
.playing-card-link:focus-visible,
.playing-card-link.is-touch-active {
  transform: translateX(var(--fan-offset)) translateY(-1.25rem) rotate(0deg) scale(1.14);
}

.home-page .featured-grid .playing-card-link .product-media img,
.home-page .featured-grid .playing-card-link > img,
.home-page .featured-grid .playing-card-link > .bank-cover-fallback {
  width: clamp(9rem, 16vw, 15.25rem);
}

.comparison-toolbar.page-toolbar {
  grid-template-columns: minmax(16rem, 1fr) auto;
  align-items: end;
}

.comparison-toolbar.page-toolbar > label:not(.search),
.comparison-toolbar.page-toolbar > button:not(.toolbar-more-button),
.comparison-toolbar.page-toolbar > select {
  display: none;
}

.comparison-toolbar.page-toolbar.is-expanded {
  grid-template-columns: minmax(16rem, 1fr) repeat(4, minmax(9rem, 0.7fr)) auto;
}

.comparison-toolbar.page-toolbar.is-expanded > label,
.comparison-toolbar.page-toolbar.is-expanded > button {
  display: grid;
}

.comparison-toolbar.page-toolbar .search {
  grid-column: auto;
}

@media (max-width: 920px) {
  .cosmo-hero {
    grid-template-columns: 1fr;
  }

  .hero-intro-video {
    width: min(100%, 42rem);
  }

  .comparison-toolbar.page-toolbar,
  .comparison-toolbar.page-toolbar.is-expanded {
    grid-template-columns: 1fr auto;
  }

  .comparison-toolbar.page-toolbar.is-expanded > label:not(.search) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .home-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
  }

  .home-page .comparison-grid.featured-grid {
    min-height: 14.25rem;
    overflow: visible;
    touch-action: pan-y;
  }

  .playing-card-link {
    --fan-offset: calc((var(--card-index) - 3.5) * clamp(1.1rem, 7vw, 2.25rem));
  }

  .home-page .featured-grid:hover .playing-card-link,
  .home-page .featured-grid:focus-within .playing-card-link,
  .home-page .featured-grid.has-touch-active .playing-card-link {
    --fan-offset: calc((var(--card-index) - 3.5) * clamp(1.25rem, 8vw, 2.65rem));
  }

  .home-page .featured-grid .playing-card-link .product-media img,
  .home-page .featured-grid .playing-card-link > img,
  .home-page .featured-grid .playing-card-link > .bank-cover-fallback {
    width: clamp(5.9rem, 31vw, 8.2rem);
  }
}

/* Absolute final overrides: keep these at EOF. */
.hero-intro-video {
  width: min(50vw, 42rem) !important;
}

.bank-card-cover {
  min-height: 15rem;
  padding: 0.5rem;
  background: transparent !important;
}

.bank-card-cover .bank-logo.bank-logo-large,
.bank-card-cover .bank-logo-large,
.bank-logo.bank-logo-large,
.bank-logo-large {
  width: min(100%, 30rem) !important;
  height: auto !important;
  min-height: clamp(6.5rem, 11vw, 12rem) !important;
  max-width: 100% !important;
  max-height: 13rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain;
}

/* Absolute final layout overrides. */
.cosmo-hero {
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr) !important;
  padding-block: clamp(0.75rem, 2vw, 1.5rem) clamp(1.25rem, 3vw, 2.5rem) !important;
  gap: clamp(1rem, 3vw, 3rem) !important;
}

.hero-intro-video {
  width: 100% !important;
  max-width: none !important;
}

.comparison-toolbar.page-toolbar {
  position: static !important;
  top: auto !important;
}

@media (max-width: 920px) {
  .cosmo-hero {
    grid-template-columns: 1fr !important;
    padding-block: clamp(0.6rem, 2.5vw, 1.15rem) clamp(1.1rem, 4vw, 2rem) !important;
  }

  .hero-intro-video {
    width: 100% !important;
    max-width: none !important;
  }
}

.product-faq-list {
  display: grid;
  gap: 0.7rem;
}

.product-faq-list details {
  border: 1px solid var(--fact-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-raised) 76%, transparent);
  overflow: hidden;
}

.product-faq-list summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.product-faq-list p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--body-copy);
  line-height: 1.65;
}
