/* Generated by scripts/build-assets.sh — edit the sources, not this file. */

/* ===== tokens.css ===== */
/* ==========================================================================
   cryptosales design tokens
   --------------------------------------------------------------------------
   One scale per dimension, no ad-hoc values anywhere else in the stylesheet.
   Dark is the default because the audience reads rate tables at night and the
   product is a market instrument; light is a first-class, hand-tuned mirror
   rather than an inverted filter.
   ========================================================================== */

:root {
  /* --- type ------------------------------------------------------------- */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  /* Fluid scale. The clamp midpoints are tuned so nothing collapses between
     the 380px phone and the 1440px desktop we design against. */
  --fs-micro: 0.6875rem;   /* 11px — eyebrows, table meta */
  --fs-xs:    0.75rem;     /* 12px */
  --fs-sm:    0.8125rem;   /* 13px — dense table cells */
  --fs-base:  0.9375rem;   /* 15px — UI body */
  --fs-md:    1.0625rem;   /* 17px — prose */
  --fs-lg:    1.1875rem;
  --fs-h4:    clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3:    clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --fs-h2:    clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  --fs-h1:    clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-hero:  clamp(2.5rem, 1.6rem + 4vw, 4.25rem);

  --lh-tight: 1.08;
  --lh-snug:  1.25;
  --lh-base:  1.55;
  --lh-prose: 1.72;

  --tracking-tight: -0.022em;
  --tracking-snug:  -0.012em;
  --tracking-wide:  0.08em;

  /* --- spacing (4px base) ----------------------------------------------- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;
  --s-9: 48px;  --s-10: 64px; --s-11: 80px; --s-12: 96px; --s-13: 128px;

  /* Section rhythm scales with the viewport so a phone does not scroll
     through desktop-sized gaps. */
  --section-y: clamp(48px, 3vw + 32px, 104px);
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 68ch;          /* prose line length */
  --container: 1240px;
  --container-narrow: 860px;

  /* --- radii ------------------------------------------------------------ */
  --r-xs: 4px;  --r-sm: 6px;  --r-md: 10px;  --r-lg: 14px;  --r-xl: 20px;
  --r-pill: 999px;

  /* --- motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 0.7, 0.28, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 130ms;
  --t-base: 200ms;
  --t-slow: 340ms;

  --z-header: 100;
  --z-dropdown: 200;
  --z-modal: 400;
  --z-toast: 500;
}

/* --- dark palette (default) --------------------------------------------- */
:root,
[data-theme='dark'] {
  color-scheme: dark;

  --bg:          #08090a;
  --bg-sunken:   #060708;
  --surface:     #101215;
  --surface-2:   #16191d;
  --surface-3:   #1c2025;
  --surface-inv: #f4f2ee;

  --line:        #22262c;
  --line-strong: #2e343b;
  --line-faint:  #171a1e;

  --text:        #eceef1;
  --text-2:      #9aa1aa;
  --text-3:      #6b727b;
  --text-inv:    #0b0c0e;

  /* Amber is the value colour: rates, CTAs, the best-offer marker. It is used
     sparingly — if more than one thing on a screen is gold, none of it reads
     as important. */
  --accent:        #f0b544;
  --accent-strong: #ffc75c;
  --accent-dim:    #7a5c22;
  --accent-wash:   rgba(240, 181, 68, 0.12);
  --accent-line:   rgba(240, 181, 68, 0.32);
  --on-accent:     #17130a;

  --positive:      #3fcb95;
  --positive-wash: rgba(63, 203, 149, 0.12);
  --negative:      #f0645f;
  --negative-wash: rgba(240, 100, 95, 0.12);
  --info:          #63a6f2;
  --info-wash:     rgba(99, 166, 242, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.8);

  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* --- light palette ------------------------------------------------------- */
[data-theme='light'] {
  color-scheme: light;

  /* Warm paper rather than white: the amber accent turns muddy against a cold
     white, and long rate tables are easier on the eye off-white. */
  --bg:          #faf9f6;
  --bg-sunken:   #f2f0ec;
  --surface:     #ffffff;
  --surface-2:   #f7f5f1;
  --surface-3:   #efece6;
  --surface-inv: #101215;

  --line:        #e4e0d8;
  --line-strong: #d2cdc2;
  --line-faint:  #eeebe4;

  --text:        #14161a;
  --text-2:      #575d66;
  --text-3:      #838a93;
  --text-inv:    #ffffff;

  /* Darkened so amber text clears 4.5:1 on paper. */
  --accent:        #97650a;
  --accent-strong: #7d5406;
  --accent-dim:    #d9b877;
  --accent-wash:   rgba(151, 101, 10, 0.09);
  --accent-line:   rgba(151, 101, 10, 0.26);
  --on-accent:     #fffdf7;

  --positive:      #10794f;
  --positive-wash: rgba(16, 121, 79, 0.1);
  --negative:      #c0392f;
  --negative-wash: rgba(192, 57, 47, 0.1);
  --info:          #1d5fb0;
  --info-wash:     rgba(29, 95, 176, 0.1);

  --shadow-sm: 0 1px 2px rgba(24, 20, 12, 0.06);
  --shadow-md: 0 8px 24px -10px rgba(24, 20, 12, 0.14);
  --shadow-lg: 0 24px 56px -18px rgba(24, 20, 12, 0.2);

  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* Visitors who never touched the switch follow their OS. The [data-theme]
   attribute always wins, in both directions. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #faf9f6; --bg-sunken: #f2f0ec;
    --surface: #ffffff; --surface-2: #f7f5f1; --surface-3: #efece6;
    --surface-inv: #101215;
    --line: #e4e0d8; --line-strong: #d2cdc2; --line-faint: #eeebe4;
    --text: #14161a; --text-2: #575d66; --text-3: #838a93; --text-inv: #ffffff;
    --accent: #97650a; --accent-strong: #7d5406; --accent-dim: #d9b877;
    --accent-wash: rgba(151, 101, 10, 0.09);
    --accent-line: rgba(151, 101, 10, 0.26);
    --on-accent: #fffdf7;
    --positive: #10794f; --positive-wash: rgba(16, 121, 79, 0.1);
    --negative: #c0392f; --negative-wash: rgba(192, 57, 47, 0.1);
    --info: #1d5fb0; --info-wash: rgba(29, 95, 176, 0.1);
    --shadow-sm: 0 1px 2px rgba(24, 20, 12, 0.06);
    --shadow-md: 0 8px 24px -10px rgba(24, 20, 12, 0.14);
    --shadow-lg: 0 24px 56px -18px rgba(24, 20, 12, 0.2);
  }
}

/* ===== base.css ===== */
/* ==========================================================================
   Reset and element defaults
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchored headings must not hide behind the sticky header. */
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-feature-settings: 'cv05' 1, 'cv11' 1, 'ss03' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { padding: 0; list-style: none; }

table { border-collapse: collapse; width: 100%; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-7) 0;
}

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-xs);
}

/* Numbers are money here. Tabular figures keep columns from dancing as rates
   tick, and slashed zero prevents O/0 confusion in addresses. */
.num, td.num, .rate-value, input[type='number'] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'zero' 1, 'cv05' 1;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-ui); font-weight: 600; }

.display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* The eyebrow is the small uppercase label above a heading, prefixed by a
   hairline rule. It is the one repeating ornament in the system. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--fs-md);
  line-height: var(--lh-prose);
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-accent { color: var(--accent); }
.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }

.small { font-size: var(--fs-sm); }
.micro { font-size: var(--fs-micro); }

/* Fractional digits are dimmed so the eye lands on the whole number first —
   a detail borrowed from trading terminals. */
.frac { color: var(--text-3); font-weight: inherit; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1440px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.stack > * + * { margin-top: var(--flow, var(--s-4)); }

.row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.row--top { align-items: flex-start; }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.divider { height: 1px; background: var(--line); border: 0; }

/* Wide content — rate tables, code, charts — scrolls inside its own box so the
   page body never scrolls sideways. */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: var(--z-toast);
  padding: var(--s-3) var(--s-5);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-sm);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--t-base) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Prose — blog articles and editorial page bodies
   ========================================================================== */

.prose {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: var(--lh-prose);
  color: var(--text);
  max-width: var(--measure);
}

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-size: var(--fs-h3);
  margin-top: 2em;
  margin-bottom: 0.1em;
  scroll-margin-top: 96px;
}
.prose h3 {
  font-size: var(--fs-h4);
  font-family: var(--font-ui);
  font-weight: 650;
  margin-top: 1.7em;
  margin-bottom: 0.1em;
  scroll-margin-top: 96px;
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast) var(--ease-out);
}
.prose a:hover { text-decoration-color: var(--accent); }

.prose strong { font-weight: 650; }

.prose ul, .prose ol {
  padding-left: 1.35em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: var(--s-5);
  font-style: italic;
  color: var(--text-2);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 0.12em 0.4em;
}

.prose pre {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.6;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }

.prose img {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.prose table {
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
}
.prose th, .prose td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.prose th { color: var(--text-3); font-weight: 600; }

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print: the rate table is the only thing worth putting on paper. */
@media print {
  .site-header, .site-footer, .exchange-widget, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ===== components.css ===== */
/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0 var(--s-5);
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: var(--fs-base);
  font-weight: 550;
  letter-spacing: var(--tracking-snug);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-strong); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--text-3); }

.btn--quiet {
  background: transparent;
  color: var(--text-2);
  padding-inline: var(--s-3);
}
.btn--quiet:hover { color: var(--text); background: var(--surface-2); }

.btn--solid {
  background: var(--surface-inv);
  color: var(--bg);
}
.btn--solid:hover { opacity: 0.88; }

.btn--lg { height: 48px; padding-inline: var(--s-6); font-size: var(--fs-md); }
.btn--sm { height: 32px; padding-inline: var(--s-4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn--icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); }

/* ==========================================================================
   Form controls
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: var(--s-2); }

.label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-3);
}

.input, .select, .textarea {
  width: 100%;
  min-height: 42px;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.textarea { min-height: 120px; resize: vertical; line-height: var(--lh-base); }

.select {
  appearance: none;
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236b727b' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  background-size: 11px;
  cursor: pointer;
}

.checkbox, .radio {
  appearance: none;
  width: 18px; height: 18px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background-color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.radio { border-radius: var(--r-pill); }
.checkbox::after {
  content: '';
  width: 10px; height: 10px;
  transform: scale(0);
  transition: transform var(--t-fast) var(--ease-out);
  background: var(--on-accent);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 22%, 84% 6%, 38% 66%);
}
.radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--on-accent);
  transform: scale(0);
  transition: transform var(--t-fast) var(--ease-out);
}
.checkbox:checked, .radio:checked { background: var(--accent); border-color: var(--accent); }
.checkbox:checked::after, .radio:checked::after { transform: scale(1); }

.help { font-size: var(--fs-xs); color: var(--text-3); }
.error-text { font-size: var(--fs-xs); color: var(--negative); }

/* ==========================================================================
   Surfaces
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6);
}
.card--flush { padding: 0; overflow: hidden; }
.card--sunken { background: var(--surface-2); }

/* An interactive card lifts by brightening its border, not by growing a
   shadow. Shadows on a dark ground read as smudge. */
.card--link {
  transition: border-color var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out);
}
.card--link:hover { border-color: var(--line-strong); background: var(--surface-2); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--line);
}
.panel__title { font-family: var(--font-ui); font-size: var(--fs-base); font-weight: 600; }
.panel__body { padding: var(--s-6); }

/* ==========================================================================
   Badges, pills, tags
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  height: 22px;
  padding: 0 var(--s-2);
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge--accent { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent); }
.badge--positive { background: var(--positive-wash); border-color: transparent; color: var(--positive); }
.badge--negative { background: var(--negative-wash); border-color: transparent; color: var(--negative); }
.badge--info { background: var(--info-wash); border-color: transparent; color: var(--info); }
.badge--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 30px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.pill:hover { border-color: var(--line-strong); color: var(--text); }
.pill[aria-current='true'], .pill--active {
  border-color: var(--accent-line);
  background: var(--accent-wash);
  color: var(--accent);
}

/* Status dot for partner health and order state. */
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--text-3);
}
.dot--live { background: var(--positive); box-shadow: 0 0 0 3px var(--positive-wash); }
.dot--warn { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.dot--down { background: var(--negative); box-shadow: 0 0 0 3px var(--negative-wash); }

/* ==========================================================================
   Partner identity
   ========================================================================== */

.plogo {
  width: 34px; height: 34px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  object-fit: contain;
  padding: 3px;
}
.plogo--lg { width: 56px; height: 56px; border-radius: var(--r-md); padding: 6px; }
.plogo--sm { width: 24px; height: 24px; border-radius: var(--r-xs); padding: 2px; }

/* Fallback monogram when a partner has no logo yet. */
.plogo-fallback {
  display: grid;
  place-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0;
}

.rating {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.rating__max { font-size: 0.8em; color: var(--text-3); font-weight: 400; }

/* ==========================================================================
   Rate table — the centrepiece
   --------------------------------------------------------------------------
   Rows are dense (44px) because comparing eight offers means seeing eight
   offers. The winning row is marked with a gold rule on its leading edge, not
   with a filled background, so the eye reads the number first.
   ========================================================================== */

.rates {
  width: 100%;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.rates thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: var(--s-3) var(--s-4);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
  white-space: nowrap;
}
.rates thead th.is-numeric { text-align: right; }

.rates tbody tr {
  border-bottom: 1px solid var(--line-faint);
  transition: background-color var(--t-fast) var(--ease-out);
}
.rates tbody tr:hover { background: var(--surface-2); }
.rates tbody tr:last-child { border-bottom: 0; }

.rates td {
  padding: var(--s-3) var(--s-4);
  vertical-align: middle;
  height: 56px;
}
.rates td.is-numeric { text-align: right; }

.rates__partner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
}
.rates__name {
  font-weight: 550;
  font-size: var(--fs-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rates__meta {
  font-size: var(--fs-micro);
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* Leading gold rule on the best row. Implemented as a cell border so it lines
   up with the row edges exactly, at any row height. */
.rates tbody tr.is-best td:first-child {
  box-shadow: inset 2px 0 0 var(--accent);
}
.rates tbody tr.is-best { background: linear-gradient(90deg, var(--accent-wash), transparent 42%); }

.rates__out { font-size: var(--fs-md); font-weight: 600; letter-spacing: var(--tracking-snug); }
.rates__delta { font-size: var(--fs-xs); color: var(--negative); }
.rates__delta--zero { color: var(--positive); }

.rates__reserve { color: var(--text-2); }
.rates__limits { font-size: var(--fs-micro); color: var(--text-3); white-space: nowrap; }

.rates__cta { text-align: right; white-space: nowrap; }

.rates tbody tr.is-stale .rates__out { color: var(--text-2); }

@media (max-width: 860px) {
  .rates thead { display: none; }
  .rates tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-2) var(--s-4);
    padding: var(--s-4);
    border-bottom: 1px solid var(--line);
  }
  .rates td { padding: 0; height: auto; }
  .rates td.is-numeric { text-align: left; }
  .rates__cta { grid-column: 1 / -1; text-align: left; }
  .rates__cta .btn { width: 100%; }
  .rates tbody tr.is-best td:first-child { box-shadow: none; }
  .rates tbody tr.is-best { border-left: 2px solid var(--accent); }
}

/* ==========================================================================
   Exchange widget
   ========================================================================== */

.exchange-widget {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.xw__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.xw__tab {
  flex: 1;
  padding: var(--s-4) var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.xw__tab:hover { color: var(--text-2); }
.xw__tab[aria-selected='true'] { color: var(--text); border-bottom-color: var(--accent); background: var(--surface); }

.xw__body { padding: var(--s-6); display: grid; gap: var(--s-3); }

/* The amount + asset selector. A single bordered box holding both keeps them
   reading as one control rather than two unrelated inputs. */
.xw__leg {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color var(--t-fast) var(--ease-out);
}
.xw__leg:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

.xw__leg-label {
  grid-column: 1 / -1;
  padding: var(--s-3) var(--s-4) 0;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
}

.xw__amount {
  border: 0;
  background: none;
  padding: var(--s-2) var(--s-4) var(--s-4);
  font-size: 1.6rem;
  font-weight: 550;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.xw__amount:focus { outline: none; }
.xw__amount::-webkit-outer-spin-button,
.xw__amount::-webkit-inner-spin-button { appearance: none; margin: 0; }

.xw__asset {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-2) var(--s-3) var(--s-3) 0;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: border-color var(--t-fast) var(--ease-out);
}
.xw__asset:hover { border-color: var(--line-strong); }
.xw__asset-net { font-size: var(--fs-micro); font-weight: 500; color: var(--text-3); }

/* The swap button straddles the two legs, overlapping both borders. */
.xw__swap-wrap {
  display: grid;
  place-items: center;
  height: 0;
  position: relative;
  z-index: 2;
}
.xw__swap {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition: transform var(--t-base) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.xw__swap:hover { color: var(--accent); border-color: var(--accent-line); transform: rotate(180deg); }

.xw__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-faint);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav__link {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current='page'] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }

.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .site-header__inner { gap: var(--s-3); }
  .header-actions { margin-left: auto; }
  .nav--open {
    display: flex;
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) var(--gutter) var(--s-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    margin-left: 0;
  }
  .nav--open .nav__link { padding: var(--s-3) var(--s-2); font-size: var(--fs-md); }
}

/* On a phone the header has room for the brand and three controls at most.
   The exchange call to action is dropped first: the widget is already the
   first thing below the fold, so the button would only be pointing at itself. */
@media (max-width: 560px) {
  .header-actions .btn--primary { display: none; }
  .brand { font-size: 1.05rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
  padding-block: var(--s-10) var(--s-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-8) var(--s-6);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col__title {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-4);
}
.footer-col a {
  display: block;
  padding: 3px 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
  transition: color var(--t-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-9);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* ==========================================================================
   Misc
   ========================================================================== */

.empty-state {
  display: grid;
  place-items: center;
  gap: var(--s-3);
  padding: var(--s-11) var(--s-6);
  text-align: center;
  color: var(--text-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

.pagination { display: flex; align-items: center; gap: var(--s-2); justify-content: center; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px;
  display: grid; place-items: center;
  padding-inline: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.pagination a:hover { border-color: var(--line-strong); color: var(--text); }
.pagination [aria-current='page'] { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.breadcrumbs a { transition: color var(--t-fast) var(--ease-out); }
.breadcrumbs a:hover { color: var(--text-2); }
.breadcrumbs li + li::before { content: '/'; margin-right: var(--s-2); color: var(--line-strong); }
.breadcrumbs li { display: inline-flex; align-items: center; }

.notice {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.notice--warn { border-color: var(--accent-line); background: var(--accent-wash); color: var(--text); }
.notice--error { border-color: transparent; background: var(--negative-wash); color: var(--text); }
.notice--ok { border-color: transparent; background: var(--positive-wash); color: var(--text); }

/* Loading shimmer for htmx swaps. Subtle, and disabled for reduced motion. */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--r-xs);
  color: transparent;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.htmx-indicator { opacity: 0; transition: opacity var(--t-base) var(--ease-out); }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-request .htmx-fade { opacity: 0.45; transition: opacity var(--t-fast) var(--ease-out); }

/* ===== pages.css ===== */
/* ==========================================================================
   Page-level composition
   ========================================================================== */

.page-top { padding-top: var(--s-6); }

.page-head { max-width: 720px; margin-bottom: var(--s-8); }
.page-head h1 { margin-top: var(--s-3); }
.page-head .lede { margin-top: var(--s-4); }

.section-head { margin-bottom: var(--s-6); }
.section-head h2 { margin-top: var(--s-3); }
.section-head__title { font-size: var(--fs-h3); margin-bottom: var(--s-4); }

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 5vw, 84px) clamp(32px, 4vw, 64px);
  overflow: hidden;
}

/* A single soft amber wash anchors the hero without resorting to a gradient
   backdrop. It is decorative only and sits behind everything. */
.hero__glow {
  position: absolute;
  inset: -30% 30% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, var(--accent-wash), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  opacity: 0.9;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title { margin-top: var(--s-5); }
.hero__copy .lede { margin-top: var(--s-5); }

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__widget { max-width: 520px; }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-9);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
@media (max-width: 620px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.stat__label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-3);
}
.stat__value {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

/* --- rate table surroundings --------------------------------------------- */

.rates-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.rates-head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--line);
  gap: var(--s-4);
}
.rates-head__title {
  font-size: var(--fs-h4);
  font-family: var(--font-ui);
  font-weight: 600;
  margin-top: var(--s-2);
}
.rates-head__meta { display: flex; align-items: center; gap: var(--s-2); }

.rates-wrap .rates thead th { background: var(--surface); }

.rates-loading {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.rates__ident { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rates__unit { margin-top: 1px; }

/* --- exchange page ------------------------------------------------------- */

.exchange-layout {
  display: grid;
  grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 1000px) { .exchange-layout { grid-template-columns: minmax(0, 1fr); } }

/* --- pair page ----------------------------------------------------------- */

.pair-hero { padding-top: var(--s-7); }
.pair-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 1000px) { .pair-hero__grid { grid-template-columns: minmax(0, 1fr); } }

.pair-hero__title { margin-top: var(--s-4); }
.pair-hero .lede { margin-top: var(--s-4); }

.pair-hero__rate {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  background: var(--accent-wash);
}
.pair-hero__rate-label { display: block; }
.pair-hero__rate-value { font-size: var(--fs-lg); font-weight: 600; }
.pair-hero__rate-partner {
  font-size: var(--fs-sm);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- pair grid and rows --------------------------------------------------- */

.pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--s-3);
}

.pair-card {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.pair-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pair-card__assets { display: flex; align-items: center; gap: var(--s-2); }
.pair-card__arrow { color: var(--text-3); display: inline-flex; }
.pair-card__label { font-weight: 550; font-size: var(--fs-base); }
.pair-card__rate { font-size: var(--fs-sm); color: var(--accent); }

.pair-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pair-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  transition: background-color var(--t-fast) var(--ease-out);
}
.pair-row:hover { background: var(--surface-2); }
.pair-row__assets { display: flex; align-items: center; gap: var(--s-2); }
.pair-row__label { font-size: var(--fs-sm); font-weight: 500; }
.pair-row__rate { font-size: var(--fs-sm); color: var(--text-2); }

/* --- asset icons ---------------------------------------------------------- */

.asset-icon {
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-3);
  object-fit: contain;
}
.asset-icon--fallback {
  display: grid;
  place-content: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-2);
  border: 1px solid var(--line);
}

/* --- partner cards and rows ----------------------------------------------- */

.partner-card { display: grid; gap: var(--s-3); align-content: start; }
.partner-card__head { display: flex; align-items: center; gap: var(--s-3); }
.partner-card__ident { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.partner-card__name { font-weight: 600; font-size: var(--fs-md); }
.partner-card__tagline { margin: 0; }
.partner-card__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.partner-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.partner-row__main { display: flex; flex-direction: column; min-width: 0; }
.partner-row__name { font-weight: 600; }
.partner-row__rating { display: flex; flex-direction: column; align-items: flex-end; }

/* --- profile -------------------------------------------------------------- */

.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: start;
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .profile-head { grid-template-columns: auto minmax(0, 1fr); }
  .profile-head__actions { grid-column: 1 / -1; }
}
.profile-head__name { font-size: var(--fs-h1); }
.profile-head__tagline { margin-top: var(--s-3); }
.profile-head__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.profile-head__actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); }

.profile-score { display: flex; align-items: baseline; gap: var(--s-1); flex-wrap: wrap; justify-content: flex-end; }
.profile-score__value { font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.profile-score__max { color: var(--text-3); }
.profile-score .micro { flex-basis: 100%; text-align: right; }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s-8);
  margin-top: var(--s-8);
  align-items: start;
}
@media (max-width: 960px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
.profile-main { --flow: var(--s-6); }
.profile-side { --flow: var(--s-4); position: sticky; top: 84px; }
@media (max-width: 960px) { .profile-side { position: static; } }

.factbox { display: grid; gap: 0; padding: 0; }
.factbox__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.factbox__row:last-child { border-bottom: 0; }
.factbox__label { color: var(--text-3); }
.factbox__value { font-weight: 550; text-align: right; }

.proscons__title { font-size: var(--fs-base); font-weight: 600; margin-bottom: var(--s-3); }
.proscons__list { display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.proscons__list li { position: relative; padding-left: var(--s-5); }
.proscons__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 2px;
  border-radius: 1px;
}
.proscons__list--pro li::before { background: var(--positive); }
.proscons__list--con li::before { background: var(--negative); }

.mini-list { display: grid; gap: var(--s-1); }
.mini-list__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: background-color var(--t-fast) var(--ease-out);
}
.mini-list__item:hover { background: var(--surface-2); }
.mini-list__item span:nth-child(2) { flex: 1; }

/* --- reviews -------------------------------------------------------------- */

.reviews { display: grid; gap: var(--s-5); }
.review { padding-bottom: var(--s-5); border-bottom: 1px solid var(--line-faint); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review__head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-2); }
.review__author { font-weight: 600; font-size: var(--fs-sm); }
.review__body { font-size: var(--fs-sm); color: var(--text-2); }
.review__reply {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
}

.stars { display: inline-flex; gap: 1px; color: var(--line-strong); }
.star--on { color: var(--accent); }

.review-form summary { list-style: none; display: inline-flex; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form__body { margin-top: var(--s-5); --flow: var(--s-4); }

.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: var(--s-2); }
.rating-input__option span {
  display: grid;
  place-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.rating-input__option:hover span { border-color: var(--accent-line); }
.rating-input__option:has(:checked) span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

/* --- filters -------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.filters__search { max-width: 280px; }
.filters__pills { display: flex; gap: var(--s-2); }
.filters__sort { max-width: 200px; margin-left: auto; }
.filters .pill { cursor: pointer; }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* --- coins ---------------------------------------------------------------- */

.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-3);
}
.coin-tile {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.coin-tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.coin-tile__code { font-weight: 650; margin-top: var(--s-2); }
.coin-tile__price { font-size: var(--fs-sm); color: var(--accent); }

.coin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.coin-head .asset-icon { width: 40px; height: 40px; }
.coin-head__title { font-size: var(--fs-h1); }
.coin-head__price { font-size: var(--fs-lg); color: var(--text-2); margin-top: var(--s-1); }
.coin-head__nets { margin-left: auto; }
.coin-head__intro { margin-top: var(--s-6); }
.coin-directions { margin-top: var(--s-8); gap: var(--s-8); }
.coin-body, .coin-faq { margin-top: var(--s-9); }

/* --- geo ------------------------------------------------------------------ */

.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-4);
}
.geo-card { display: grid; gap: var(--s-1); }
.geo-card__city { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; }
.geo-card__methods { margin-top: var(--s-3); }

.geo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 1000px) { .geo-hero { grid-template-columns: minmax(0, 1fr); } }
.geo-hero h1 { margin-top: var(--s-3); }
.geo-hero .lede { margin-top: var(--s-4); }
.geo-methods { margin-top: var(--s-6); display: grid; gap: var(--s-3); }

/* --- blog ----------------------------------------------------------------- */

.blog-cats { margin-bottom: var(--s-7); }

.post-card { display: grid; align-content: start; }
.post-card__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.post-card__body { padding: var(--s-5); display: grid; gap: var(--s-3); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.post-card__title { font-size: var(--fs-h4); }
.post-card__excerpt { margin: 0; }

.article { --container-narrow: 740px; }
.article__head { margin-block: var(--s-6) var(--s-8); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.article__title { margin-top: var(--s-4); font-size: var(--fs-h1); }
.article__lede { margin-top: var(--s-5); }
.article__cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  margin-bottom: var(--s-9);
}
/* The article column is the narrow container itself; the prose block must not
   re-centre inside it or the body drifts away from the heading above. */
.article__body { max-width: none; }
.article__tags { margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--line); }

/* --- blacklist ------------------------------------------------------------ */

.blacklist { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
.blacklist__item {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-left: 2px solid var(--negative);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--surface);
}
.blacklist__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3); }
.blacklist__name { font-weight: 650; font-size: var(--fs-md); }
.blacklist__reason { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-sm); }

/* --- FAQ ------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  font-family: var(--font-ui);
  font-weight: 550;
  font-size: var(--fs-md);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron { flex: none; color: var(--text-3); transition: transform var(--t-base) var(--ease-out); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a { padding-bottom: var(--s-5); font-size: var(--fs-base); }
.static-faq { margin-top: var(--s-9); }

/* --- how it works --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-7);
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.step__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.step__title { margin-top: var(--s-3); font-size: var(--fs-h4); }
.step__body { margin-top: var(--s-3); font-size: var(--fs-sm); }

/* --- tracking ------------------------------------------------------------- */

.track-code { font-size: var(--fs-h2); letter-spacing: 0.04em; }
.track-form { margin-top: var(--s-6); --flow: var(--s-5); }
.track-legs { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.track-legs__arrow { color: var(--text-3); font-size: 1.2rem; }
.track-leg { display: grid; gap: var(--s-1); }
.track-leg__amount { font-size: var(--fs-lg); font-weight: 600; }

.copy-row { display: flex; align-items: center; gap: var(--s-3); }
.copy-row__value {
  flex: 1;
  min-width: 0;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}

.timeline { margin-top: var(--s-7); display: grid; gap: 0; }
.timeline__item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) 0 var(--s-3) var(--s-5);
  position: relative;
  font-size: var(--fs-sm);
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 4px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline__item:first-child::before { top: 50%; }
.timeline__item:last-child::before { bottom: 50%; }
.timeline__dot {
  position: absolute;
  left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline__status { flex: 1; font-weight: 550; }

/* --- forms ---------------------------------------------------------------- */

.application-form { margin-top: var(--s-8); --flow: var(--s-5); }

/* --- footer extras --------------------------------------------------------- */

.footer-about { margin-top: var(--s-4); max-width: 46ch; }
.footer-social {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.footer-social:hover { color: var(--text); border-color: var(--line-strong); }

/* --- dropdown -------------------------------------------------------------- */

.locale-switch { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--z-dropdown);
  min-width: 150px;
  padding: var(--s-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.dropdown[hidden] { display: none; }
.dropdown__item {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.dropdown__item:hover { background: var(--surface-2); color: var(--text); }
.dropdown__item[aria-current='true'] { color: var(--accent); }

/* --- asset picker ---------------------------------------------------------- */

.picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.picker {
  width: min(460px, 100%);
  max-height: min(640px, 82vh);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.picker__head {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.picker__search { flex: 1; }
.picker__list { flex: 1; overflow-y: auto; padding: var(--s-2); }
.picker__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  text-align: left;
  transition: background-color var(--t-fast) var(--ease-out);
}
.picker__item:hover, .picker__item.is-active { background: var(--surface-2); }
.picker__code { font-weight: 600; font-size: var(--fs-sm); }
.picker__name { flex: 1; font-size: var(--fs-sm); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker li[hidden] { display: none; }

.xw__usd { font-weight: 500; color: var(--text-3); }

/* --- error page ------------------------------------------------------------ */

.error-page { text-align: center; padding-block: var(--s-13); }
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--line-strong);
}
.error-page h1 { margin-top: var(--s-5); }
.error-page .lede { margin-inline: auto; margin-top: var(--s-4); }
.error-page__actions { justify-content: center; margin-top: var(--s-7); }

.pagination { margin-top: var(--s-8); }
.pagination__gap { border: 0; color: var(--text-3); }

/* --- on-site swap confirmation ---------------------------------------------- */

.swap-summary { display: grid; gap: var(--s-5); margin-bottom: var(--s-5); }
.swap-summary__partner { display: flex; align-items: center; gap: var(--s-4); }
.swap-summary__name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; }
.swap-summary__legs {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.swap-summary__arrow { color: var(--text-3); font-size: 1.3rem; }
.swap-summary__meta { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.swap-leg { display: grid; gap: var(--s-1); }
.swap-leg__amount { font-size: var(--fs-lg); font-weight: 600; }
.swap-form { --flow: var(--s-5); margin-top: var(--s-5); }

/* The aged-rate marker is a glyph rather than an emoji: emoji render at a
   different size and colour in every browser, and this sits inside a dense
   metadata row where that reads as a defect. */
.rates__stale { display: inline-flex; align-items: center; color: var(--text-3); }

/* --- private exchange -------------------------------------------------------- */

.private-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-block: var(--s-6) var(--s-4);
}
@media (max-width: 1000px) { .private-hero { grid-template-columns: minmax(0, 1fr); } }
.private-hero__title { margin-top: var(--s-4); font-size: var(--fs-h1); }
.private-hero .lede { margin-top: var(--s-4); }

.private-chain { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
.private-chain__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: baseline;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.private-chain__num { color: var(--accent); font-family: var(--font-display); letter-spacing: 0.06em; }

/* The route picker opens inline beneath its row rather than in a modal: the
   comparison stays on screen while the addresses are typed. */
.private-pick > summary { list-style: none; cursor: pointer; display: inline-flex; }
.private-pick > summary::-webkit-details-marker { display: none; }
.private-form {
  --flow: var(--s-4);
  width: min(360px, 80vw);
  margin-top: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: left;
}

.private-legs { margin-top: var(--s-5); }
.private-leg__meta { display: grid; gap: 2px; margin-top: var(--s-3); }
.track-note { margin-top: var(--s-6); }
