/* Neutral landing kit for the Dexsport demo network.
   Token-driven: per-site accent is injected on <html> as --accent / --accent-strong.
   Light is the base palette; dark is redefined under prefers-color-scheme and [data-theme=dark]. */

:root {
  --accent: #0f8f7c;
  --accent-strong: #0b6f60;
  --accent-ink: #ffffff;

  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f0f2f4;
  --line: #e2e6ea;
  --ink: #16202a;
  --ink-2: #4a5765;
  --ink-3: #74818f;
  --shadow: 0 1px 2px rgba(16,32,42,.06), 0 8px 24px rgba(16,32,42,.06);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: var(--accent-dark, #2bd3b6);
    --accent-strong: var(--accent-dark, #2bd3b6);
    --accent-ink: #06201b;
    --bg: #0d1217;
    --surface: #141b22;
    --surface-2: #1b232c;
    --line: #26313c;
    --ink: #eef2f6;
    --ink-2: #b4c0cc;
    --ink-3: #8795a3;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --accent: var(--accent-dark, #2bd3b6);
  --accent-strong: var(--accent-dark, #2bd3b6);
  --accent-ink: #06201b;
  --bg: #0d1217;
  --surface: #141b22;
  --surface-2: #1b232c;
  --line: #26313c;
  --ink: #eef2f6;
  --ink-2: #b4c0cc;
  --ink-3: #8795a3;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 .5em; }
h3 { font-size: 1.15rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; color: var(--ink-2); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-strong); margin: 0 0 .8em; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 54ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 650; font-size: 1rem;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: .55em 1em; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; }
.brand img, .brand svg { height: 30px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .97rem; }
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: 8px; }
.burger { margin-left: auto; display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 42px; height: 40px; cursor: pointer; color: var(--ink); }
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px;
  cursor: pointer; color: var(--ink-2); font-size: 1.05rem; display: inline-grid; place-items: center; }

/* Hero */
.hero { padding: 76px 0 40px; }
.hero .trust-line { color: var(--ink-3); font-size: .9rem; margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Rankings table */
.rank-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.rank-note { color: var(--ink-3); font-size: .92rem; max-width: 42ch; }
.rank-list { display: grid; gap: 14px; }
.rank-card { display: grid; grid-template-columns: 44px 190px 1fr auto; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.rank-card.is-top { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.rank-num { font-weight: 800; font-size: 1.5rem; color: var(--ink-3); text-align: center; }
.rank-card.is-top .rank-num { color: var(--accent-strong); }
.rank-brand { display: flex; align-items: center; gap: 12px; }
.rank-brand img { height: 30px; width: auto; }
.rank-brand .nm { font-weight: 700; }
.rank-brand .tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 2px 8px; border-radius: 999px; margin-top: 3px; }
.rank-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; }
.rank-facts b { color: var(--ink); font-weight: 650; }
.rank-facts span { color: var(--ink-3); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.rank-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.score { font-weight: 800; font-size: 1.15rem; }
.score small { color: var(--ink-3); font-weight: 600; font-size: .8rem; }
.rank-mobile-note { display: none; color: var(--ink-2); font-size: .9rem; }

/* Trust grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-strong); }
.card p { margin: 0; font-size: .95rem; }

/* Editorial */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 0; }
.prose p:last-child { margin-bottom: 0; }
.editorial-block + .editorial-block { margin-top: 42px; }

/* Netherlands / callout */
.callout { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 15px 0; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-strong); font-weight: 800; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 15px; margin: 0; font-size: .97rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--accent-ink); border-radius: calc(var(--radius) + 6px); padding: 44px; text-align: center; }
.cta-band h2 { color: var(--accent-ink); }
.cta-band p { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); max-width: 46ch; margin-inline: auto; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent-strong); margin-top: 18px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: var(--ink); }
.footer-note { color: var(--ink-3); font-size: .83rem; margin-top: 26px; max-width: 72ch; }
.age-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--ink-3); color: var(--ink-2); font-weight: 800; font-size: .82rem; }

/* Service page */
.doc { padding: 48px 0 72px; }
.doc .prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.breadcrumb { color: var(--ink-3); font-size: .9rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-3); }

/* Byline (E-E-A-T) */
.byline { color: var(--ink-3); font-size: .9rem; margin-top: 16px; }
.byline b { color: var(--ink-2); font-weight: 650; }

/* Scorecards */
.scorecards-sec { padding: 28px 0; }
.scorecards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.scorecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.sc-big { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1; }
.sc-of { font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.sc-small { color: var(--ink-2); font-size: .9rem; margin-top: 6px; }

/* Comparison table */
.wrap-wide { max-width: 1280px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .83rem; table-layout: fixed; }
table.cmp thead th { text-align: left; padding: 12px 9px; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-3); font-weight: 700; border-bottom: 1px solid var(--line); vertical-align: bottom; }
table.cmp thead th span { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); opacity: .8; }
table.cmp tbody td { padding: 12px 9px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); word-wrap: break-word; }
/* Fixed column widths so 11 columns fit a desktop without horizontal scroll */
table.cmp .c-num { width: 38px; white-space: nowrap; text-align: center; padding-left: 4px; padding-right: 4px; }
table.cmp .c-brand { width: 22%; }
table.cmp th:nth-child(3) { width: 70px; }
table.cmp th:nth-child(4) { width: 90px; }
table.cmp th:nth-child(5) { width: 13%; }
table.cmp th:nth-child(6) { width: 10%; }
table.cmp th:nth-child(7) { width: 9%; }
table.cmp th:nth-child(8) { width: 10%; }
table.cmp th:nth-child(9) { width: 10%; }
table.cmp .c-est { width: 52px; }
table.cmp .c-cta { width: 70px; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr.is-top { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.c-num { color: var(--ink-3); font-weight: 800; width: 34px; }
tr.is-top .c-num { color: var(--accent-strong); }
.c-cta { text-align: right; white-space: nowrap; }
.c-min { white-space: nowrap; }
.tb-brand { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.tb-brand img { height: 26px; width: auto; flex: none; }
.tb-dot { width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--accent-ink); background: var(--accent); font-size: .85rem; }
.tb-brand .nm { font-weight: 700; color: var(--ink); white-space: nowrap; }
.tb-note { color: var(--ink-3); font-size: .78rem; max-width: 34ch; }
.tb-brand .tag { display: inline-block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 16%, transparent); padding: 1px 6px; border-radius: 999px; vertical-align: middle; }
.c-score b { color: var(--ink); font-weight: 800; }
.bar { display: block; height: 4px; border-radius: 3px; background: var(--surface-2); margin-top: 5px; min-width: 56px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill-nokyc { color: #0a7d4b; background: #d7f4e4; }
.pill-riskbased, .pill-threshold { color: #9a6a00; background: #fbeecb; }
.pill-mandatory { color: #a23b3b; background: #f6dcdc; }
.pill-\2014 { color: var(--ink-3); background: var(--surface-2); }
:root:not([data-theme="light"]) .pill-nokyc, :root[data-theme="dark"] .pill-nokyc { color: #7df0b4; background: rgba(16,120,70,.25); }
:root:not([data-theme="light"]) .pill-riskbased, :root[data-theme="dark"] .pill-riskbased,
:root:not([data-theme="light"]) .pill-threshold, :root[data-theme="dark"] .pill-threshold { color: #f3cf7e; background: rgba(150,110,0,.25); }
:root:not([data-theme="light"]) .pill-mandatory, :root[data-theme="dark"] .pill-mandatory { color: #f0a0a0; background: rgba(160,60,60,.25); }
.table-foot { color: var(--ink-3); font-size: .82rem; margin-top: 14px; }

/* Collapsible rows (top 10 visible, rest behind Show all) */
table.cmp[data-collapsed="true"] tbody tr.row-extra { display: none; }
.show-all-wrap { text-align: center; margin-top: 18px; }
.show-all { min-width: 240px; }

/* Sponsored promo banner (ad unit for the top pick) */
.promo-sec { padding: 10px 0 44px; }
.promo { position: relative; display: block; text-decoration: none; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.promo-flag { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-3); background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 999px; }
.promo-img img { display: block; width: 100%; height: auto; }
.promo-body { background:
    radial-gradient(1200px 300px at 85% -40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent),
    linear-gradient(120deg, var(--surface), var(--surface-2)); padding: 34px 36px; }
.promo-eyebrow { color: var(--accent-strong); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; margin: 0 0 8px; }
.promo-title { color: var(--ink); font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0 0 8px; max-width: 24ch; }
.promo-text { color: var(--ink-2); margin: 0 0 18px; max-width: 60ch; }
.promo-body .btn { pointer-events: none; }

/* Sources / methodology */
.src-line { color: var(--ink-3); font-size: .82rem; margin-top: 18px; }

/* Mobile drawer */
.drawer { display: none; }
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .scorecards { grid-template-columns: repeat(2, 1fr); }
  /* On small screens let the wide table scroll horizontally again */
  table.cmp { table-layout: auto; min-width: 860px; }
  .rank-card { grid-template-columns: 38px 1fr auto; grid-template-areas: "num brand right" "facts facts facts"; row-gap: 12px; }
  .rank-num { grid-area: num; } .rank-brand { grid-area: brand; } .rank-right { grid-area: right; } .rank-facts { grid-area: facts; }
  .drawer[data-open="true"] { display: block; position: fixed; inset: 66px 0 0; background: var(--bg); z-index: 39; padding: 20px; }
  .drawer a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
  .drawer .btn { margin-top: 18px; width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
}
