[hidden]{display:none!important}body{margin:0}img{max-width:100%}
/* Layout: one calm reading column (max 760px) on open white; views swap in place with a soft fade. */
:root {
  --bg: #ffffff;
  --surface: #f6f7f4;
  --line: #e7e9e3;
  --ink: #1c1f1b;
  --muted: #6a7068;
  --gold: #d99a1e;
  --gold-soft: #fbf2dc;
  --gold-ink: #8a5d06;
  --sage: #2f7d68;
  --sage-soft: #e5f1ec;
  --slate: #66707f;
  --slate-soft: #edf0f3;
  --focus: #d99a1e;
  --shadow: 0 1px 2px rgba(28,31,27,.04), 0 8px 24px -12px rgba(28,31,27,.10);
  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --t-xs: .78rem; --t-sm: .9rem; --t-md: 1rem; --t-lg: 1.15rem; --t-xl: 1.6rem; --t-2xl: clamp(2.6rem, 7vw, 4.2rem);
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121412; --surface: #1a1d1a; --line: #2a2e2a; --ink: #eceee9; --muted: #9ba198;
    --gold: #f0bd4f; --gold-soft: #2e2615; --gold-ink: #f3cf7e;
    --sage: #6fc3a8; --sage-soft: #16291f; --slate: #a6afbd; --slate-soft: #1f2329;
    --focus: #f0bd4f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121412; --surface: #1a1d1a; --line: #2a2e2a; --ink: #eceee9; --muted: #9ba198;
  --gold: #f0bd4f; --gold-soft: #2e2615; --gold-ink: #f3cf7e;
  --sage: #6fc3a8; --sage-soft: #16291f; --slate: #a6afbd; --slate-soft: #1f2329;
  --focus: #f0bd4f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-inline: 20px; padding-block: 0;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 760px; margin: 0 auto; }

/* Header */
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  margin-inline: -20px; padding-inline: 20px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: #fff; font-size: .85rem; font-weight: 700; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: var(--t-sm); padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); }

/* View transition */
#view { transition: opacity .28s ease, transform .28s ease; padding-block: 24px 72px; }
#view.leaving { opacity: 0; transform: translateY(6px); }
#view.entering { opacity: 0; transform: translateY(-4px); transition: none; }
@media (prefers-reduced-motion: reduce) { #view, #view.leaving, #view.entering { transition: none; transform: none; } }

/* Type */
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--t-2xl); font-weight: 600; line-height: 1.02; }
h2 { font-size: var(--t-xl); font-weight: 600; line-height: 1.15; }
h3 { font-size: var(--t-lg); font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.eyebrow { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.stack > * + * { margin-top: 14px; }
section + section { margin-top: 64px; }
.mono { font-family: var(--f-mono); font-size: .92em; }

/* Hero */
.hero { padding-block: 40px 8px; display: grid; gap: 18px; }
.hero h1 span { color: var(--gold); }

/* Finder */
.finder { margin-top: 36px; display: grid; gap: 22px; }
.q { display: grid; gap: 10px; }
.q-label { font-size: var(--t-sm); color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  font: inherit; font-size: var(--t-sm); cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; transition: background .2s, border-color .2s, color .2s;
}
.choice:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Route list */
.results { display: grid; gap: 10px; margin-top: 8px; }
.route {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
  text-decoration: none; padding: 18px 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid transparent;
  transition: border-color .2s, background .2s, transform .2s;
}
.route:hover { border-color: var(--line); background: var(--bg); box-shadow: var(--shadow); }
.route-main { min-width: 0; display: grid; gap: 4px; }
.route-name { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.route-sum { color: var(--muted); font-size: var(--t-sm); }
.route-arrow { color: var(--muted); transition: transform .2s, color .2s; }
.route:hover .route-arrow { transform: translateX(3px); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: var(--t-xs); padding: 3px 9px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.tag.shielded { background: var(--sage-soft); color: var(--sage); }
.tag.after { background: var(--gold-soft); color: var(--gold-ink); }
.tag.transparent { background: var(--slate-soft); color: var(--slate); }
.tag.plain { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.route .tag.plain { background: transparent; }
.tag.soon { background: var(--gold-soft); color: var(--gold-ink); }
.rank { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--gold-ink); }

.fade-in > * { animation: rise .45s ease both; }
.fade-in > *:nth-child(2) { animation-delay: .05s; }
.fade-in > *:nth-child(3) { animation-delay: .1s; }
.fade-in > *:nth-child(4) { animation-delay: .15s; }
.fade-in > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes rise { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in > * { animation: none; } }

/* Directory */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px 8px; }
.group-title { margin-top: 36px; margin-bottom: 12px; }

/* Guide */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: var(--t-sm); }
.back:hover { color: var(--ink); }
.guide-head { display: grid; gap: 14px; padding-block: 24px 8px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-family: var(--f-mono); font-size: var(--t-xs); display: grid; place-items: center; font-weight: 500; margin-top: 1px; }
.steps li > div { min-width: 0; }
.step-body { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.step-body > span { flex: 1 1 18em; min-width: 0; }
.shot-btn {
  font: inherit; font-size: var(--t-xs); font-weight: 500; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  color: var(--muted); background: transparent; border: 1px solid var(--line);
  padding: 4px 11px 4px 9px; border-radius: 999px;
  animation: rise .35s ease both; transition: color .2s, border-color .2s, background .2s;
}
.shot-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: var(--gold-soft); }
.shot-btn svg { width: 14px; height: 14px; }

/* Screenshot viewer */
.viewer { border: 0; padding: 0; margin: auto; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: var(--ink); }
.viewer::backdrop { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s ease; }
.viewer.open::backdrop { opacity: 1; }
.viewer-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(20px, env(safe-area-inset-bottom, 0px)); opacity: 0; transform: scale(.98); transition: opacity .25s ease, transform .25s ease; }
.viewer.open .viewer-inner { opacity: 1; transform: none; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; max-width: 760px; width: 100%; margin: 0 auto; }
.viewer-count { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); }
.icon-btn { font: inherit; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: var(--surface); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.viewer-stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 0; max-width: 1000px; width: 100%; margin: 0 auto; }
.viewer-stage figure { margin: 0; min-height: 0; height: 100%; display: grid; place-items: center; }
.viewer-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); object-fit: contain; border-radius: 18px; box-shadow: 0 2px 6px rgba(28,31,27,.06), 0 30px 60px -20px rgba(28,31,27,.25); background: var(--bg); transition: opacity .2s ease; }
.viewer-stage img.swap { opacity: 0; }
.viewer-cap { max-width: 34em; margin: 0 auto; text-align: center; font-size: var(--t-sm); color: var(--muted); text-wrap: balance; }
.viewer-cap b { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .viewer-stage { grid-template-columns: 1fr; } .viewer-stage .nav-prev, .viewer-stage .nav-next { display: none; } }
@media (prefers-reduced-motion: reduce) { .viewer-inner, .viewer::backdrop, .viewer-stage img, .shot-btn { transition: none; animation: none; } }
.notes { display: grid; gap: 10px; margin: 0; padding: 16px 20px 16px 38px; list-style: disc; background: var(--surface); border-radius: 12px; font-size: var(--t-sm); }
.notes li { padding-left: 2px; }
.notes li::marker { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: var(--t-sm); transition: opacity .2s; }
.btn:hover { opacity: .86; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.checked { font-size: var(--t-xs); color: var(--muted); margin-top: 20px; }

/* Basics */
.addr { display: grid; gap: 10px; margin-top: 18px; }
.addr-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--surface); }
.addr-row code { font-family: var(--f-mono); font-size: var(--t-sm); padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.addr-row p { font-size: var(--t-sm); min-width: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.panel { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.panel p { font-size: var(--t-sm); color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: var(--t-xs); display: grid; gap: 6px; }

@media (max-width: 560px) {
  .nav { flex-wrap: wrap; padding-block: 14px; }
  .nav-links { width: calc(100% + 40px); margin-inline: -20px; padding-inline: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; }
  .route { padding: 16px; }
  .hero { padding-top: 20px; }
}

/* Static pages: parts that only make sense with JavaScript on (finder buttons, filters) */
html:not(.js) .js-only { display: none !important; }
html.js .nojs-only { display: none !important; }
#view:focus { outline: none; }
a.shot-btn { text-decoration: none; }
.sources { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--t-xs); color: var(--muted); }
.sources a { color: var(--muted); text-underline-offset: 2px; }
.sources a:hover { color: var(--ink); }

/* Integration tracker */
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.count { background: var(--bg); padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.count dt { line-height: 1; }
.count dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); line-height: 1; }
.targets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.target { padding: 18px 20px; border-radius: var(--r); background: var(--surface); display: grid; gap: 8px; min-width: 0; }
.target-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.target-head a { text-decoration: none; }
.target-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.target-what { color: var(--muted); font-size: var(--t-sm); }
.target-facts { display: grid; gap: 8px; margin: 4px 0 0; font-size: var(--t-sm); }
.target-facts dt { font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.target-facts dd { margin: 0; }
.target .checked { margin-top: 4px; overflow-wrap: anywhere; }
.target .checked a { color: var(--muted); text-underline-offset: 2px; }
.target .tag.plain { background: var(--bg); }
@media (max-width: 560px) { .target { padding: 16px; } }

/* First-time checklist */
.checklist h2 { font-size: var(--t-lg); line-height: 1.3; }
/* Steps run full width: the checkbox marks each step, so there's no number column. */
.checklist li { display: block; padding-block: 18px; }
.checklist li::before { content: none; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--sage); cursor: pointer; }
.check-body { margin-top: 10px; color: var(--muted); }
.check-body .cols { margin-top: 14px; }
.check-body a:not(.panel) { color: var(--ink); text-underline-offset: 2px; }
.checklist li.ticked h2 { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .checklist li h2 { transition: color .2s; } }
.check-body .panel h3 { color: var(--ink); }

/* Privacy scorecard */
.scorecard { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 18px 0 0; }
.scorecard > div { background: var(--bg); padding: 14px 16px; display: grid; grid-template-columns: 11em 1fr; gap: 4px 16px; }
.scorecard dt { font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding-top: 3px; }
.scorecard dd { margin: 0; font-size: var(--t-sm); }
@media (max-width: 560px) { .scorecard > div { grid-template-columns: 1fr; } }
.incidents { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.incidents li { display: grid; grid-template-columns: 8.5em 1fr; gap: 4px 14px; font-size: var(--t-sm); padding: 12px 16px; border-radius: 12px; background: var(--surface); }
.incidents time { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--gold-ink); padding-top: 2px; }
.incidents a { color: var(--muted); font-size: var(--t-xs); text-underline-offset: 2px; }
@media (max-width: 560px) { .incidents li { grid-template-columns: 1fr; } }
.muted-line { color: var(--muted); font-size: var(--t-sm); }

/* Countries */
.opt { color: var(--muted); opacity: .8; }
.select-wrap { position: relative; max-width: 22rem; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select { appearance: none; -webkit-appearance: none; width: 100%; font: inherit; font-size: var(--t-sm); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 40px 10px 16px; cursor: pointer; transition: border-color .2s; }
.select:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
a.choice { text-decoration: none; display: inline-block; }
.country-chips { margin-top: 6px; }
.callout { padding: 20px; border-radius: var(--r); background: var(--slate-soft); display: grid; gap: 10px; }
.callout.gold { background: var(--gold-soft); }
.callout h2 { font-size: var(--t-lg); line-height: 1.3; }
.callout h3 { font-size: var(--t-md); margin-top: 4px; }
.callout ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: var(--t-sm); }
.callout p { font-size: var(--t-sm); }
a.src { color: var(--muted); font-size: var(--t-xs); text-underline-offset: 2px; white-space: nowrap; }

/* Integration tracker: collapsible items (one open at a time; animated in src/app.js) */
.acc { display: block; padding: 0; border: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.acc[open] { background: var(--bg); border-color: var(--line); box-shadow: var(--shadow); }
.acc > summary { list-style: none; cursor: pointer; padding: 16px 20px; align-items: center; border-radius: var(--r); -webkit-tap-highlight-color: transparent; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary { flex-wrap: nowrap; }
.acc > summary h3 { min-width: 0; flex: 1 1 auto; }
.acc > summary:hover h3 { color: var(--gold-ink); }
.acc > summary:focus-visible { outline-offset: -2px; }
.acc-end { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.acc-chev { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.acc[open] .acc-chev { transform: translateY(2px) rotate(225deg); }
.acc-body { overflow: hidden; }
.acc-inner { padding: 0 20px 18px; display: grid; gap: 8px; }
.acc-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 2px; }
.acc .tag.plain { background: var(--bg); }
@media (max-width: 560px) { .acc > summary { padding: 14px 16px; } .acc-inner { padding: 0 16px 16px; } }
@media (prefers-reduced-motion: reduce) { .acc, .acc-chev { transition: none; } }

/* Live quotes */
.quote-form { display: grid; gap: 10px; }
.quote-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quote-row .select-wrap { flex: 1 1 13rem; max-width: none; }
.input { font: inherit; font-size: var(--t-sm); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; width: 9rem; flex: 0 1 9rem; min-width: 0; transition: border-color .2s; }
.input:hover, .input:focus { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.quote-row .btn { border: 0; cursor: pointer; font: inherit; font-size: var(--t-sm); font-weight: 500; }
.quote-row .btn[disabled] { opacity: .5; cursor: progress; }
.quote-out { font-family: var(--f-mono); font-weight: 500; color: var(--sage); white-space: nowrap; }
.quote-fail { opacity: .75; }
#quote-results:empty { display: none; }
#quote-results a, #quote-meta + * a { text-underline-offset: 2px; }
@media (max-width: 560px) { .input { flex: 1 1 100%; width: 100%; } .quote-row .btn { flex: 1 1 100%; justify-content: center; } }
.guide-head .actions { margin-top: 8px; }

/* Wallet logos on the home page: a row of three */
.wallets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.wallet { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; min-width: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.wallet:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); box-shadow: var(--shadow); }
.wallet img { width: 44px; height: 44px; flex: none; border-radius: 12px; object-fit: contain; }
.wallet span { min-width: 0; }
@media (max-width: 560px) { .wallet { flex-direction: column; gap: 8px; padding: 14px 8px; text-align: center; font-size: var(--t-sm); } }
