/* ==========================================================================
   Site Styles — Crypto Affiliate Referral Website
   Layer order matters: tokens → reset → layout → components → utilities → print
   Crypto-adapted: no age gate (not a gambling site); risk-disclosure strip
   instead. Visual motif is a subtle "blockchain" hex/network backdrop rather
   than the betting site's blueprint grid.
   ========================================================================== */
@import url("tokens.css");

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-ink);
  background: var(--c-canvas);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: var(--lh-tight); margin: 0 0 var(--sp-3); color: var(--c-ink); }
h1 { font-size: var(--fs-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); }
button { font: inherit; cursor: pointer; }

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */
.wrap        { width: 100%; max-width: var(--w-base); margin-inline: auto; padding-inline: var(--sp-4); }
.wrap--wide  { max-width: var(--w-wide); }
.wrap--narrow{ max-width: var(--w-narrow); }

.section      { padding-block: var(--sp-7); }
.section--alt { background: var(--c-surface); border-block: 1px solid var(--c-border); }

.grid        { display: grid; gap: var(--sp-5); }
.grid--2     { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid--3     { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* --------------------------------------------------------------------------
   3. Skip link (a11y)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: calc(var(--z-gate) + 1);
  background: var(--c-ink); color: var(--c-ink-inv); padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Crypto risk-disclosure strip (replaces the betting site's age gate)
   Crypto is volatile, not federally insured. This is the standing trust strip.
   -------------------------------------------------------------------------- */
.risk-strip {
  background: var(--c-ink);
  color: #cfe0eb;
  padding: var(--sp-3) 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
}
.risk-strip a { color: #7fd4e8; text-decoration: underline; }
.risk-strip strong { color: #fff; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid transparent; border-radius: var(--r-md);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1;
  text-decoration: none; transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }

.btn--primary { background: var(--c-accent); color: var(--c-ink-inv); }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--brand   { background: var(--c-brand); color: var(--c-ink-inv); }
.btn--brand:hover { background: var(--c-brand-hover); }
.btn--ghost   { background: transparent; color: var(--c-ink); border-color: var(--c-border-strong); }
.btn--ghost:hover { background: var(--c-surface-alt); }
.btn--block   { width: 100%; }
.btn--sm      { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   6. Disclosure banner — monetization transparency
   -------------------------------------------------------------------------- */
.disclosure {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--c-ink-2);
}
.disclosure strong { color: var(--c-ink); }

/* --------------------------------------------------------------------------
   7. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--f-display); font-size: var(--fs-md); font-weight: 700; color: var(--c-ink); }
.brand__mark {
  width: 2rem; height: 2rem; border-radius: var(--r-sm);
  background: var(--c-brand); color: var(--c-ink-inv);
  display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 700;
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--c-ink-2); font-size: var(--fs-sm); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--c-brand); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--sp-8); background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.hero__eyebrow {
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-brand); margin-bottom: var(--sp-3);
}
.hero__title { font-size: var(--fs-3xl); max-width: 22ch; }
.hero__lede { font-size: var(--fs-md); color: var(--c-ink-2); max-width: 58ch; }

/* --------------------------------------------------------------------------
   9. Exchange card — core repeating unit
   -------------------------------------------------------------------------- */
.ex-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-4);
  position: relative;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.ex-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-brand);
}
.ex-card--top { border-color: var(--c-brand); border-width: 2px; }
.ex-card__rank {
  position: absolute; top: calc(-1 * var(--sp-3)); left: var(--sp-5);
  background: var(--c-brand); color: var(--c-ink-inv);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em;
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill);
}
.ex-card--info-only .ex-card__rank { background: var(--c-ink-3); }

.ex-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); }
.ex-card__name { font-size: var(--fs-lg); margin: 0; }
.ex-card__type { font-size: var(--fs-xs); color: var(--c-ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

.ex-card__rating { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--f-mono); font-size: var(--fs-sm); font-weight: 700; }
.ex-card__stars { color: var(--c-caution); letter-spacing: -0.1em; }

.ex-card__bonus {
  background: var(--c-brand-soft);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  text-align: center;
}
.ex-card__bonus-value { font-family: var(--f-display); font-size: var(--fs-xl); font-weight: 700; color: var(--c-brand); }
.ex-card__bonus-label { font-size: var(--fs-xs); color: var(--c-ink-2); text-transform: uppercase; letter-spacing: 0.06em; }

.ex-card__fees { font-size: var(--fs-xs); color: var(--c-ink-3); border-top: 1px solid var(--c-border); padding-top: var(--sp-3); }
.ex-card__fees strong { color: var(--c-ink-2); }

.ex-card__avail { font-size: var(--fs-xs); color: var(--c-ink-3); }
.ex-card__avail--restricted { color: var(--c-caution); font-weight: 600; }

.ex-card__pros, .ex-card__cons { margin: 0; padding-left: var(--sp-5); font-size: var(--fs-sm); }
.ex-card__pros li::marker { color: var(--c-positive); }
.ex-card__cons li::marker { color: var(--c-critical); }

.ex-card__foot { margin-top: auto; }
.ex-card__meta { font-size: var(--fs-xs); color: var(--c-ink-3); margin-top: var(--sp-2); text-align: center; }

/* --------------------------------------------------------------------------
   10. Comparison table
   -------------------------------------------------------------------------- */
.cmp-scroll { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 44rem; }
.cmp-table th, .cmp-table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.cmp-table thead th {
  background: var(--c-surface-alt); font-family: var(--f-mono); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-ink-2);
  position: sticky; top: 0; z-index: 1;
}
.cmp-table tbody tr:hover { background: var(--c-surface-alt); }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table .is-best { color: var(--c-brand); font-weight: 700; }
.cmp-table__op { display: flex; align-items: center; gap: var(--sp-3); font-weight: 600; color: var(--c-ink); }

/* --------------------------------------------------------------------------
   11. Tool widgets
   -------------------------------------------------------------------------- */
.tool {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-sm);
}
.tool__title { font-size: var(--fs-md); margin-bottom: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink-2); }
.field input, .field select {
  font: inherit; padding: var(--sp-3); border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md); background: var(--c-surface); color: var(--c-ink);
}
.field input:focus, .field select:focus { outline: 3px solid var(--c-brand-soft); border-color: var(--c-brand); }
.tool__out {
  background: var(--c-surface-sunk); border-radius: var(--r-md);
  padding: var(--sp-4); font-family: var(--f-mono); font-size: var(--fs-sm);
  white-space: pre-wrap; word-break: break-word;
}
.tool__out--empty { color: var(--c-ink-3); }

/* --------------------------------------------------------------------------
   12. Callouts / trust blocks
   -------------------------------------------------------------------------- */
.callout { border-left: 4px solid var(--c-brand); background: var(--c-surface); border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--sp-4) var(--sp-5); }
.callout--caution  { border-left-color: var(--c-caution); }
.callout--critical { border-left-color: var(--c-critical); }
.callout--info     { border-left-color: var(--c-info); }
.callout__title { font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding-block: var(--sp-7) var(--sp-5); }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--sp-6); }
.site-footer h4 { font-family: var(--f-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-ink-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer a { font-size: var(--fs-sm); color: var(--c-ink-2); }
.site-footer__legal { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--c-border); font-size: var(--fs-xs); color: var(--c-ink-3); }

/* --------------------------------------------------------------------------
   14. Badges
   -------------------------------------------------------------------------- */
.badge { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-sm); }
.badge--state  { background: var(--c-brand-soft); color: var(--c-brand); }
.badge--warn   { background: #fef3c7; color: var(--c-caution); }
.badge--stop   { background: #fee2e2; color: var(--c-critical); }
.badge--sample { background: #e0e7ff; color: var(--c-info); }
.badge--ok     { background: #dcfce7; color: #0f9d58; }
.badge--info   { background: var(--c-surface-alt); color: var(--c-ink-3); }

/* --------------------------------------------------------------------------
   15. Utilities
   -------------------------------------------------------------------------- */
.u-muted   { color: var(--c-ink-3); }
.u-small   { font-size: var(--fs-sm); }
.u-mono    { font-family: var(--f-mono); }
.u-center  { text-align: center; }
.u-mt-0    { margin-top: 0; }
.u-mb-0    { margin-bottom: 0; }
.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 48rem) {
  :root { --fs-3xl: 2rem; --fs-2xl: 1.6rem; }
  .site-header__inner { flex-direction: column; align-items: flex-start; padding-block: var(--sp-3); }
  .site-nav ul { gap: var(--sp-4); }
  .hero { padding-block: var(--sp-6); }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .risk-strip, .btn { display: none !important; }
  body { background: #fff; }
}

/* --------------------------------------------------------------------------
   18. Crypto visual polish
   -------------------------------------------------------------------------- */

/* --- Brand mark: liquid teal gradient --- */
.brand__mark {
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-hover));
  box-shadow: 0 1px 3px rgba(15, 27, 45, 0.25);
  letter-spacing: 0.02em;
}

/* --- Subtle "network/chain" backdrop (crypto motif) --- */
body {
  background-color: var(--c-canvas);
  background-image:
    radial-gradient(circle at 1px 1px, var(--c-border) 1px, transparent 1px);
  background-size: 26px 26px;
}
.site-header, .site-footer { background-color: var(--c-surface); }
.wrap > section, .ex-card, .tool, .callout { background-color: var(--c-surface); }

/* --- Hero background: liquid-glow gradient --- */
.hero {
  background:
    radial-gradient(60rem 20rem at 85% -10%, rgba(11, 122, 140, 0.10), transparent 60%),
    radial-gradient(40rem 18rem at 10% 110%, rgba(217, 119, 6, 0.06), transparent 60%),
    var(--c-surface);
}

/* --- Scroll-reveal (progressive enhancement; hidden only when JS runs) --- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Back-to-top button --- */
.back-to-top {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5);
  z-index: var(--z-sticky);
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-pill);
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface); color: var(--c-brand);
  font-size: var(--fs-lg); line-height: 1;
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--c-brand); color: var(--c-ink-inv); }

/* --- Section headline divider --- */
.section__title, .h-section {
  position: relative;
  padding-bottom: var(--sp-3);
}
.section__title::after, .h-section::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 3rem; height: 3px;
  background: linear-gradient(90deg, var(--c-brand), var(--c-accent));
  border-radius: var(--r-pill);
}

/* --- Card depth --- */
.ex-card {
  border-top: 3px solid var(--c-brand);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 40%),
    var(--c-surface);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ex-card:hover { border-top-color: var(--c-accent); }

/* --- Buttons: subtle gradient + sheen --- */
.btn--brand {
  background-image:
    linear-gradient(180deg, var(--c-brand-hover) 0%, var(--c-brand) 100%);
  box-shadow: 0 2px 6px rgba(11, 122, 140, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.btn--brand:hover {
  background-image: linear-gradient(180deg, var(--c-brand) 0%, var(--c-brand-hover) 100%);
  box-shadow: 0 4px 12px rgba(11, 122, 140, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* --- Hero ambient background (subtle animated gradient + network glow) --- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(20, 161, 184, 0.16), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(224, 138, 46, 0.10), transparent 55%),
    var(--c-canvas);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20, 161, 184, 0.10) 1px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 75%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }

/* --- List utilities --- */
.u-list { margin: var(--sp-2) 0 0; padding-left: 1.1em; }
.u-list li { margin-bottom: var(--sp-1); }
.u-list--muted { color: var(--c-ink-3); }

/* --- Badges (parallel referral difficulty) --- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge--easy { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.badge--medium { background: rgba(20, 161, 184, 0.12); color: #0b7a8c; }
.badge--hard { background: rgba(220, 38, 38, 0.10); color: #b91c1c; }
.badge--muted { background: var(--c-surface-alt); color: var(--c-ink-3); }
@media (prefers-color-scheme: dark) {
  .badge--easy { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
  .badge--medium { background: rgba(45, 212, 191, 0.16); color: #2dd4bf; }
  .badge--hard { background: rgba(248, 113, 113, 0.16); color: #f87171; }
}

/* --- FAQ blocks (category pages) --- */
.faq {
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.faq h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); color: var(--c-ink); }
.faq p { font-size: var(--fs-sm); color: var(--c-ink-2); margin: 0; }

/* --- Live price ticker (homepage hero) --- */
.ticker {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  font-family: var(--f-mono); font-size: var(--fs-xs);
}
.ticker__label {
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-positive); font-weight: 700;
  display: inline-flex; align-items: center; gap: var(--sp-1);
}
.ticker__label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-positive);
  animation: ticker-pulse 1.6s ease-in-out infinite;
}
.ticker__items { display: inline-flex; gap: var(--sp-4); flex-wrap: wrap; }
.ticker__item { color: var(--c-ink-2); white-space: nowrap; }
.ticker__item strong { color: var(--c-ink); margin-right: var(--sp-1); }
@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* --- Dark mode --- */
@media (prefers-color-scheme: dark) {
  :root {
    --c-canvas: #0d141c;
    --c-surface: #141d27;
    --c-surface-alt: #1a2630;
    --c-surface-sunk: #22303c;
    --c-border: #2a3b4a;
    --c-border-strong: #3c5163;
    --c-ink: #e9f0f5;
    --c-ink-2: #b8c8d5;
    --c-ink-3: #7f97aa;
    --c-brand: #2fb3c9;
    --c-brand-hover: #45c4d9;
    --c-brand-soft: #0f2830;
    --c-accent: #e08a2e;
    --c-accent-hover: #ee9b3c;
    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-md: 0 2px 8px rgba(0, 0, 0, 0.45);
    --sh-lg: 0 8px 28px rgba(0, 0, 0, 0.5);
  }
  body { background-image: radial-gradient(circle at 1px 1px, rgba(42, 59, 74, 0.35) 1px, transparent 1px); }
  .badge--warn { background: #3a2f12; }
  .badge--stop { background: #3a1515; }
  .badge--sample { background: #1a2440; }
  .badge--ok { background: #0f2e1c; color: #4ade80; }
  .ex-card { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 45%), var(--c-surface); }
}

/* ==========================================================================
   Visual polish (CoinCompass) — reading progress, TOC/scrollspy, card lift
   ========================================================================== */

/* Reading progress bar (thin gradient bar at the very top showing scroll progress) */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--c-accent, #d97706), var(--c-brand, #0b7a8c));
  z-index: 1000;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* "On this page" table of contents */
.toc {
  border: 1px solid var(--c-border, #d7e0e8);
  border-radius: var(--r-lg, 14px);
  padding: var(--sp-4);
  margin-bottom: var(--sp-6);
  background: var(--c-surface, #fff);
}
.toc__label {
  display: block;
  font-size: var(--fs-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-3, #5f7487);
  margin-bottom: var(--sp-2);
}
.toc ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--sp-1);
}
.toc a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--c-info, #2563eb);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: border-color 0.2s, color 0.2s;
}
.toc a:hover { text-decoration: underline; }
.toc a.is-active {
  border-left-color: var(--c-accent, #d97706);
  color: var(--c-ink, #0f1b2d);
  font-weight: 600;
}

/* Card hover lift (subtle, respects reduced motion) — applies to panels/cards */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .panel, .card, .ex-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .panel:hover, .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-md, 0 2px 8px rgba(15, 27, 45, 0.08));
  }
}

/* Inline crypto risk note near the conversion path (affiliate CTAs) */
.disclosure__risk {
  display: block;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border, #d7e0e8);
  font-size: var(--fs-sm, 0.875rem);
  color: var(--c-ink-3, #5f7487);
}
.disclosure__risk strong {
  color: var(--c-caution, #b45309);
}
/* Compact US-availability callout on review pages */
.availability {
  border: 1px solid var(--c-border, #d7e0e8);
  border-left: 4px solid var(--c-positive, #0f9d58);
  border-radius: var(--r-md, 8px);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
  background: var(--c-surface, #fff);
}
.availability--info {
  border-left-color: var(--c-critical, #d32f2f);
}
.availability__title {
  font-weight: 700;
  color: var(--c-ink, #0f1b2d);
  margin-bottom: var(--sp-1);
}
/* Fee example callout */
.fee-example {
  border: 1px solid var(--c-brand-soft, #e1f2f5);
  background: var(--c-brand-soft, #e1f2f5);
  border-radius: var(--r-md, 8px);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
  font-size: var(--fs-sm, 0.875rem);
}
.fee-example__title {
  font-weight: 700;
  color: var(--c-brand, #0b7a8c);
  margin-bottom: var(--sp-1);
}

/* Newsletter form (footer) */
.site-footer__newsletter {
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  border: 1px solid var(--c-border, #d7e0e8);
  border-radius: var(--r-md, 8px);
  background: var(--c-surface-alt, #eef3f7);
}
.site-footer__newsletter h4 { margin-bottom: var(--sp-1); }
.site-footer__newsletter p { margin-bottom: var(--sp-2); }
.newsletter-form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border, #d7e0e8);
  border-radius: var(--r-sm, 4px);
  background: var(--c-surface, #fff);
  color: var(--c-ink, #0f1b2d);
}
.newsletter-form__msg { flex-basis: 100%; font-size: var(--fs-sm, 0.875rem); margin: var(--sp-1) 0 0; }
.newsletter-form__msg.is-ok { color: var(--c-positive, #0f9d58); }
.newsletter-form__msg.is-err { color: var(--c-critical, #d32f2f); }
/* Anchor/TOC links: keep section headings clear of the sticky header when jumped to */
[id] { scroll-margin-top: 5.5rem; }

/* Tools hub cards */
.tool-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: var(--sp-5);
  border: 1px solid var(--c-border, #d7e0e8);
  border-radius: var(--r-lg, 14px);
  box-shadow: var(--sh-sm, 0 1px 2px rgba(15,27,45,0.06));
  background: var(--c-surface, #fff);
}

/* Numeric readability — tabular figures keep aligned columns from wobbling */
.u-tnum,
.cmp-table td,
.cmp-table th,
.tool__out,
.ex-card__rating,
.ex-card *[class*="price"],
.ticker__item {
  font-variant-numeric: tabular-nums, lining-nums;
}
.cmp-table td, .cmp-table th { padding: var(--sp-3); }
/* Right-align numeric columns */
.cmp-table .u-mono, .cmp-table td.u-mono { text-align: right; }

/* Sticky header for the comparison table (stays visible while scrolling the page) */
.cmp-scroll thead th {
  position: sticky;
  top: var(--header-h, 4rem);
  background: var(--c-surface, #fff);
  z-index: 1;
  box-shadow: 0 1px 0 var(--c-border, #d7e0e8);
}

/* Focus rings for accessibility + premium feel */
input:focus, button:focus, a:focus-visible {
  outline: 2px solid var(--c-brand, #0b7a8c);
  outline-offset: 2px;
}
/* Custom number-stepper buttons on tool inputs (bigger touch targets) removed;
   keep native spinners but style them subtly in modern browsers. */
input[type=number] { font-variant-numeric: tabular-nums; }

/* Copy button used by tools */
.copied { color: var(--c-positive, #0f9d58); }
/* Cross-document View Transitions: app-like cross-fade between pages.
   Progressive enhancement — unsupported browsers fall back to instant nav.
   Only enabled when the user has not requested reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: 0.28s;
  }
}
/* Ticker price-change flash (green up / red down) — micro-interaction */
.ticker__item--up { color: var(--c-positive); }
.ticker__item--down { color: var(--c-critical); }
@media (prefers-reduced-motion: no-preference) {
  .ticker__item--up, .ticker__item--down {
    animation: ticker-flash 0.9s ease-out;
  }
}
@keyframes ticker-flash {
  0% { background: color-mix(in srgb, currentColor 18%, transparent); }
  100% { background: transparent; }
}

/* Glass sticky header — translucent blur, shadow only when stuck (progressive) */
.site-header {
  background: color-mix(in srgb, var(--c-surface) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports (container-type: scroll-state) {
  .site-header { container-type: scroll-state; }
  @container scroll-state(stuck: top) {
    .site-header { box-shadow: 0 1px 0 var(--c-border), 0 6px 20px -12px rgba(15,27,45,0.25); }
  }
}

/* Interactive checklist (security page) */
.checklist {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  border: 1px solid var(--c-border, #d7e0e8);
  border-radius: var(--r-md, 8px);
  padding: var(--sp-4);
  background: var(--c-surface, #fff);
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-base, 1rem);
  line-height: 1.5;
  cursor: pointer;
}
.checklist__item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.1rem; height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--c-brand, #0b7a8c);
}
.checklist__score {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-border, #d7e0e8);
  font-weight: 700;
  color: var(--c-brand, #0b7a8c);
}

/* Bento grid — asymmetric feature tiles (research-backed: ~23% more scroll depth) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(7rem, auto);
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.bento__tile {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--rad-2, 12px);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
}
.bento__tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.35);
}
.bento__tile--wide { grid-column: span 2; grid-row: span 2; }
.bento__tile--tall { grid-row: span 2; }
.bento__tile--accent { background: linear-gradient(135deg, var(--c-brand), var(--c-brand-hover)); color: var(--c-ink-inv, #fff); border: none; }
.bento__tile--accent .bento__kicker { color: rgba(255,255,255,0.8); }
.bento__kicker {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.72rem; font-weight: 700; color: var(--c-ink-3, #666);
}
.bento__tile h3 { margin: 0; font-size: 1.15rem; }
.bento__tile p { margin: 0; font-size: 0.9rem; color: var(--c-ink-2, #444); line-height: 1.5; }
.bento__tile--accent p { color: rgba(255,255,255,0.9); }
.bento__stat { font-size: 2rem; font-weight: 800; line-height: 1; }
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__tile--wide, .bento__tile--tall { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .bento__tile--wide, .bento__tile--tall { grid-column: span 1; }
}
