/* =========================================================================
   NomadRails — "MISSION CONTROL" dark terminal skin, mapped onto the rr-*
   class vocabulary so every page flips to dark with zero HTML changes.
   Near-black canvas, lemon-green accent, monospace data, blueprint grid,
   hard borders, HUD corner ticks. Prefix kept: rr-
   ========================================================================= */

:root {
  --paper:      #0B0E13;
  --paper-2:    #10141B;
  --card:       #10141B;
  --ink:        #EAF0E6;
  --ink-soft:   #98A39C;
  --ink-faint:  #616C66;
  --line:       rgba(234,240,230,.09);
  --line-2:     rgba(234,240,230,.18);

  --teal:       #C6F24E;   /* lemon-green accent */
  --teal-deep:  #ABDA2E;
  --teal-tint:  rgba(198,242,78,.10);
  --amber:      #F2C14E;
  --amber-tint: rgba(242,193,78,.12);
  --plum:       #B69CFF;
  --rose:       #FF8A7A;

  --ok:         #5BE39A;
  --warn:       #F2C14E;
  --bad:        #FF6B5C;
  --glow:       rgba(198,242,78,.30);

  --serif: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --sans:  "IBM Plex Sans", "Noto Sans SC", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  --r-s: 2px;
  --r-m: 3px;
  --r-l: 4px;
  --shadow-s: 0 1px 0 rgba(255,255,255,.02);
  --shadow-m: 0 14px 36px rgba(0,0,0,.55);
  --shadow-l: 0 22px 60px rgba(0,0,0,.6);

  --wrap: 1180px;
  --gap: clamp(16px, 3vw, 26px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(60rem 40rem at 84% -8%, rgba(198,242,78,.06), transparent 60%);
  background-size: 46px 46px, 46px 46px, auto;
  background-position: -1px -1px, -1px -1px, 0 0;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-color: rgba(198,242,78,.4); text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: #fff; letter-spacing: 0; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); font-weight: 700; letter-spacing: 0; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.04rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: #fff; }

.rr-wrap { width: min(var(--wrap), 100% - 2 * clamp(18px, 5vw, 48px)); margin-inline: auto; }
.rr-wrap--narrow { width: min(760px, 100% - 2 * clamp(18px, 5vw, 40px)); margin-inline: auto; }

.rr-skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: #0B0E13; padding: 10px 16px; z-index: 200; font-family: var(--mono); }
.rr-skip:focus { left: 0; }

::selection { background: var(--teal); color: #0B0E13; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.rr-btn:focus-visible { outline-offset: 3px; }

/* =======================  HEADER  ======================= */
.rr-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,19,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.rr-head__bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.rr-brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: #fff; text-decoration: none; letter-spacing: 0; }
.rr-brand:hover { color: #fff; }
.rr-brand__mark { width: 34px; height: 34px; flex: none; border-radius: 0; border: 1px solid var(--teal); background: rgba(198,242,78,.08); display: grid; place-items: center; box-shadow: 0 0 16px rgba(198,242,78,.18); }
.rr-brand__mark svg { width: 20px; height: 20px; }
.rr-brand__mark svg path { stroke: var(--teal) !important; }
.rr-brand b { color: var(--teal); font-weight: 700; }

.rr-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.rr-nav a { font-family: var(--mono); font-size: .78rem; font-weight: 400; letter-spacing: .03em; color: var(--ink-soft); text-decoration: none; padding: 9px 12px; border-radius: 0; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid transparent; }
.rr-nav a:hover { color: #fff; border-color: var(--line-2); background: transparent; }
.rr-nav a[aria-current="page"] { color: var(--teal); background: transparent; }
.rr-nav a[aria-current="page"]::before { content: "› "; color: var(--teal); }

.rr-burger { margin-left: auto; display: none; width: 50px; height: 44px; border: 1px solid var(--line-2); background: var(--paper-2); border-radius: 0; cursor: pointer; align-items: center; justify-content: center; }
.rr-burger span, .rr-burger span::before, .rr-burger span::after { content: ""; display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 0; position: relative; }
.rr-burger span::before { position: absolute; top: -6px; }
.rr-burger span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .rr-burger { display: inline-flex; }
  .rr-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line-2); padding: 6px clamp(18px,5vw,40px) 14px;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow-m);
  }
  .rr-nav[data-open="true"] { transform: translateY(0); }
  .rr-nav a { padding: 14px 6px; font-size: .95rem; border: 0; border-bottom: 1px solid var(--line); }
}

/* =======================  BUTTONS / CHIPS  ======================= */
.rr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; min-width: 44px; padding: 13px 22px; border-radius: 0; font-family: var(--mono); font-weight: 500; font-size: .92rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); transition: transform .14s ease, box-shadow .2s ease, background .16s ease, color .16s ease, border-color .16s; }
.rr-btn:active { transform: translateY(1px); }
.rr-btn--primary { background: var(--teal); color: #0B0E13; border-color: var(--teal); font-weight: 600; }
.rr-btn--primary:hover { background: #fff; border-color: #fff; color: #0B0E13; box-shadow: 0 0 26px var(--glow); transform: translateY(-1px); }
.rr-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.rr-btn--ghost:hover { color: #fff; border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.rr-btn--amber { background: var(--amber); color: #2a1c05; border-color: var(--amber); }
.rr-btn--amber:hover { background: #fff; border-color: #fff; color: #2a1c05; }
.rr-btn svg { width: 18px; height: 18px; }

.rr-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 0; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .04em; background: transparent; color: var(--ink-soft); border: 1px solid var(--line-2); }
.rr-chip--teal { color: var(--teal); border-color: rgba(198,242,78,.4); }
.rr-chip--amber { color: var(--amber); border-color: rgba(242,193,78,.4); }
.rr-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.rr-eyebrow { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 .9em; }

/* =======================  HERO  ======================= */
.rr-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(30px, 5vw, 52px); position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.rr-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; position: relative; }
.rr-hero h1 { margin-bottom: .3em; letter-spacing: 0; text-wrap: balance; }
.rr-hero__lead { font-size: clamp(1.06rem, 1.6vw, 1.26rem); color: var(--ink-soft); max-width: 42ch; margin-bottom: 1.5em; }
.rr-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.4em; }
.rr-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-family: var(--mono); font-size: .74rem; color: var(--ink-soft); }
.rr-hero__meta span { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 0; }
.rr-hero__meta span::before { content: "▸"; color: var(--teal); }
.rr-hero__meta svg { display: none; }
@media (max-width: 860px) { .rr-hero__grid { grid-template-columns: 1fr; gap: 30px; } }

/* highlighted word */
.rr-hl { position: relative; white-space: nowrap; color: var(--teal); }
.rr-hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 2px; background: var(--teal); box-shadow: 0 0 10px var(--glow); }
.rr-hl--amber { color: var(--amber); }
.rr-hl--amber::after { background: var(--amber); box-shadow: none; }

/* currency ticker */
.rr-ticker { margin-top: 24px; display: flex; align-items: center; gap: 0; font-family: var(--mono); font-size: .76rem; color: var(--ink-soft); border: 1px solid var(--line-2); flex-wrap: wrap; }
.rr-ticker__label { font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; color: var(--ink-faint); white-space: nowrap; padding: 10px 13px; border-right: 1px solid var(--line); }
.rr-ticker__row { display: flex; gap: 0; flex-wrap: wrap; }
.rr-fx { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 0; background: transparent; border: 0; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink-soft); }
.rr-fx b { color: #fff; font-weight: 700; }
.rr-fx .up { color: var(--ok); } .rr-fx .dn { color: var(--bad); }
@media (max-width: 560px) { .rr-ticker { display: none; } }

/* hero matrix card -> console panel */
.rr-matrixcard { position: relative; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 0; box-shadow: none; padding: 0; transform: none; }
.rr-matrixcard::before { content: ""; position: absolute; top: -1px; left: -1px; width: 11px; height: 11px; border-top: 2px solid var(--teal); border-left: 2px solid var(--teal); }
.rr-matrixcard::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px; border-bottom: 2px solid var(--teal); border-right: 2px solid var(--teal); }
.rr-matrixcard__inner { border-radius: 0; overflow: hidden; border: 0; }
.rr-matrixcard__head { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: #06080C; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); font-weight: 400; position: relative; }
.rr-matrixcard__head .dot { width: 9px; height: 9px; border-radius: 50%; }
.rr-dot-r { background: #2a2f38; } .rr-dot-y { background: #2a2f38; } .rr-dot-g { background: var(--teal); box-shadow: 0 0 8px var(--glow); }
.rr-matrixcard__head::before { content: ""; position: absolute; right: 78px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--teal); animation: rr-pulse 2s infinite; }
.rr-matrixcard__head::after { content: "live"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
@keyframes rr-pulse { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 7px rgba(198,242,78,0); } 100% { box-shadow: 0 0 0 0 rgba(198,242,78,0); } }
.rr-mtable { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .8rem; }
.rr-mtable th, .rr-mtable td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.rr-mtable thead th { background: transparent; font-family: var(--mono); font-weight: 500; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.rr-mtable tbody th { font-weight: 500; color: var(--ink); }
.rr-mtable td { font-weight: 500; color: var(--ink-soft); }
.rr-mtable .v-best { color: var(--ok); }
.rr-mtable .v-mid { color: var(--warn); }
.rr-mtable .v-poor { color: var(--bad); }
.rr-mtable tbody tr:last-child th, .rr-mtable tbody tr:last-child td { border-bottom: 0; }
.rr-mtable tbody tr:hover td, .rr-mtable tbody tr:hover th { background: var(--paper-2); }

/* =======================  SECTIONS  ======================= */
.rr-section { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.rr-section--alt { background: linear-gradient(180deg, var(--paper-2), transparent 70%); border-top: 1px solid var(--line); }
.rr-sec-head { max-width: 60ch; margin-bottom: clamp(26px, 4vw, 42px); }
.rr-sec-head p { color: var(--ink-soft); margin-bottom: 0; }
.rr-sec-head .rr-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.rr-sec-head .rr-eyebrow::before { content: "//"; color: var(--teal); }
.rr-sec-head h2 { letter-spacing: 0; text-wrap: balance; }

/* scenario cards -> modules */
.rr-scenarios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: scard; }
@media (max-width: 960px) { .rr-scenarios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rr-scenarios { grid-template-columns: 1fr; } }
.rr-scard { position: relative; display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 0; padding: 24px 20px; text-decoration: none; color: var(--ink); box-shadow: none; transition: transform .16s ease, border-color .2s, background .2s; min-height: 100%; overflow: hidden; counter-increment: scard; }
.rr-scard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.rr-scard:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--card); color: var(--ink); }
.rr-scard:hover::before { transform: scaleX(1); }
.rr-scard__glyph { width: 44px; height: 44px; border-radius: 0; border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 16px; color: var(--teal); background: transparent; transition: transform .25s ease; }
.rr-scard__glyph svg { width: 22px; height: 22px; }
.rr-scard:hover .rr-scard__glyph { transform: translateY(-2px); }
.g-teal, .g-amber, .g-plum, .g-rose { background: transparent; }
.g-amber { color: var(--amber); } .g-plum { color: var(--plum); } .g-rose { color: var(--rose); }
.rr-scard h3 { font-size: 1.18rem; margin-bottom: .3em; color: #fff; }
.rr-scard p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1em; }
.rr-scard__pick { margin-top: auto; font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }
.rr-scard__pick b { color: var(--teal); }
.rr-scard__num { position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--ink-faint); }
.rr-scard:hover .rr-scard__num { color: var(--teal); }
.rr-scard__arrow { position: absolute; top: 20px; right: 18px; color: var(--ink-faint); opacity: 0; transition: opacity .2s, transform .2s, color .2s; }
.rr-scard:hover .rr-scard__arrow { opacity: 1; transform: translate(2px,-2px); color: var(--teal); }

/* =======================  COMPARISON TABLE  ======================= */
.rr-table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 0; box-shadow: none; background: var(--paper-2); -webkit-overflow-scrolling: touch; }
table.rr-compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.rr-compare caption { text-align: left; padding: 12px 16px; font-family: var(--mono); font-size: .7rem; color: var(--ink-faint); caption-side: bottom; border-top: 1px solid var(--line); }
.rr-compare th, .rr-compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; }
.rr-compare td:last-child, .rr-compare th:last-child { border-right: 0; }
.rr-compare thead th { position: sticky; top: 0; background: #06080C; font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; z-index: 1; border-bottom: 1px solid var(--line-2); }
.rr-compare tbody th { font-family: var(--serif); font-weight: 600; color: #fff; background: var(--paper-2); position: sticky; left: 0; min-width: 150px; }
.rr-compare tbody tr:hover th, .rr-compare tbody tr:hover td { background: var(--card); }
.rr-compare tbody tr:last-child th, .rr-compare tbody tr:last-child td { border-bottom: 0; }
.rr-rate { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; display: inline-block; }
.val-good { color: var(--ok); } .val-mid { color: var(--warn); } .val-poor { color: var(--bad); }
.rr-badge-best { display: inline-block; font-family: var(--mono); font-size: .6rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: transparent; border: 1px solid currentColor; padding: 2px 6px; border-radius: 0; margin-left: 6px; }
.rr-tcell { display: inline-flex; align-items: center; gap: 10px; }
.rr-tlogo { width: 25px; height: 25px; flex: none; border-radius: 0; border: 1px solid var(--line-2); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-weight: 700; font-size: .78rem; }

/* =======================  SPONSOR / DISCLOSURE  ======================= */
.rr-sponsor { position: relative; background: var(--paper-2); border: 1px solid var(--amber); border-radius: 0; padding: 22px 22px 22px 24px; box-shadow: none; overflow: hidden; }
.rr-sponsor::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--amber); }
.rr-sponsor__tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); background: transparent; border: 1px solid rgba(242,193,78,.4); padding: 3px 9px; border-radius: 0; margin-bottom: 12px; }
.rr-sponsor h3 { font-size: 1.2rem; margin-bottom: .3em; }
.rr-sponsor p { font-size: .9rem; color: var(--ink-soft); }
.rr-sponsor__row { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.rr-sponsor__body { flex: 1 1 320px; }
.rr-sponsor__head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.rr-sponsor__head h3 { margin: 0; }
.rr-sponsor__rating { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.rr-sponsor__medallion { width: 60px; height: 60px; border-radius: 0; flex: none; display: grid; place-items: center; background: #000; border: 1px solid var(--line-2); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.rr-sponsor__pros { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-family: var(--mono); font-size: .8rem; margin: 12px 0 16px; padding: 0; list-style: none; }
.rr-sponsor__pros li { display: flex; gap: 8px; color: var(--ink-soft); align-items: flex-start; line-height: 1.4; }
.rr-sponsor__pros .pro::before { content: "+"; color: var(--ok); font-weight: 700; }
.rr-sponsor__pros .con::before { content: "\2212"; color: var(--bad); font-weight: 700; }

.rr-disclosure { font-family: var(--mono); font-size: .78rem; line-height: 1.6; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 0; padding: 16px 18px; }
.rr-disclosure b { color: var(--ink); }

/* in-context sponsor */
.rr-incontext { margin: 26px 0; border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: 0; background: var(--paper-2); padding: 18px 20px; }
.rr-incontext__tag { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.rr-incontext p { font-size: .9rem; margin: .5em 0; color: var(--ink-soft); }
.rr-incontext a.rr-inlink, .rr-inlink { font-weight: 500; color: var(--teal); }

/* =======================  ARTICLE / PROSE  ======================= */
.rr-article { padding: clamp(26px, 4vw, 44px) 0 clamp(40px, 6vw, 70px); }
.rr-article__head { max-width: 780px; margin: 0 auto clamp(24px,4vw,38px); }
.rr-article__meta { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: .8rem; color: var(--ink-faint); margin-top: 14px; align-items: center; }
.rr-article__meta time { font-weight: 500; color: var(--ink-soft); }
.rr-byline { display: inline-flex; align-items: center; gap: 9px; }
.rr-byline__av { width: 30px; height: 30px; border-radius: 0; border: 1px solid var(--teal); background: rgba(198,242,78,.1); display: grid; place-items: center; color: var(--teal); font-weight: 700; font-size: .78rem; font-family: var(--serif); }

.rr-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: clamp(28px, 4vw, 52px); align-items: start; }
.rr-layout > * { min-width: 0; }
@media (max-width: 940px) { .rr-layout { grid-template-columns: minmax(0,1fr); } }

.rr-prose { font-size: 1.05rem; color: #C9D2CC; max-width: 72ch; min-width: 0; }
.rr-table-wrap { max-width: 100%; }
.rr-prose h2 { margin-top: 1.7em; scroll-margin-top: 84px; position: relative; padding-left: 18px; }
.rr-prose h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 3px; background: var(--teal); }
.rr-prose h3 { margin-top: 1.4em; scroll-margin-top: 84px; color: var(--teal); }
.rr-prose h2:first-child { margin-top: 0; }
.rr-prose ul, .rr-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.rr-prose li { margin-bottom: .5em; }
.rr-prose li::marker { color: var(--teal); }
.rr-prose blockquote { margin: 1.4em 0; padding: 14px 18px 14px 22px; border-left: 3px solid var(--amber); background: var(--paper-2); color: var(--ink-soft); font-style: normal; }
.rr-prose a { font-weight: 500; }
.rr-prose code { background: #06080C; padding: 1px 6px; border-radius: 0; font-family: var(--mono); font-size: .88em; border: 1px solid var(--line-2); color: var(--teal); }
.rr-prose figure { margin: 1.6em 0; }
.rr-prose figcaption { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); margin-top: 8px; text-align: center; }

.rr-lede { font-size: 1.18rem; line-height: 1.55; color: var(--ink-soft); font-family: var(--sans); font-weight: 400; }

/* key takeaways */
.rr-takeaways { position: relative; background: var(--paper-2); border: 1px solid var(--line-2); border-left: 3px solid var(--teal); border-radius: 0; padding: 20px 24px; margin: 0 0 28px; box-shadow: none; }
.rr-takeaways h2 { font-family: var(--mono) !important; font-size: .8rem !important; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .7em !important; color: var(--teal); padding-left: 0 !important; }
.rr-takeaways h2::before { display: none; }
.rr-takeaways ul { margin: 0; padding-left: 1.2em; }
.rr-takeaways li { font-size: .95rem; color: #C9D2CC; }
.rr-takeaways::before { display: none; }

/* notes */
.rr-note { display: flex; gap: 14px; padding: 16px 18px; border-radius: 0; margin: 24px 0; font-size: .92rem; border: 1px solid var(--line-2); box-shadow: none; }
.rr-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.rr-note--risk { background: rgba(255,107,92,.07); border-color: rgba(255,107,92,.35); color: #f3b8b0; }
.rr-note--risk svg { color: var(--bad); }
.rr-note--info { background: rgba(242,193,78,.07); border-color: rgba(242,193,78,.35); color: #f0d49a; }
.rr-note--info svg { color: var(--amber); }
.rr-note strong { color: #fff; }

/* TOC */
.rr-toc { position: sticky; top: 84px; font-size: .88rem; }
.rr-toc__title { font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.rr-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.rr-toc li { margin: 0; }
.rr-toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.rr-toc a:hover { color: var(--teal); border-left-color: var(--line-2); }
.rr-toc a.is-active { color: var(--teal); font-weight: 500; border-left-color: var(--teal); background: transparent; }
@media (max-width: 940px) {
  .rr-toc { position: static; margin-bottom: 28px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 0; padding: 16px 18px; }
  .rr-toc ol { border-left: 0; }
  .rr-toc a { min-height: 44px; display: flex; align-items: center; padding-left: 0; border-left: 0; }
}
.rr-aside-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }

/* verdict */
.rr-verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 12px; margin: 22px 0 28px; }
.rr-verdict__item { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 0; padding: 14px 16px; box-shadow: none; transition: transform .15s, border-color .2s; }
.rr-verdict__item:hover { transform: translateY(-2px); border-color: var(--teal); }
.rr-verdict__item h4 { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 4px; }
.rr-verdict__item p { margin: 0; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--teal); }

.rr-stars { color: var(--amber); letter-spacing: 2px; font-size: .95rem; }

/* =======================  FAQ  ======================= */
.rr-faq { display: grid; gap: 12px; }
.rr-faq details { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 0; padding: 0; box-shadow: none; transition: border-color .2s; }
.rr-faq details[open] { border-color: rgba(198,242,78,.35); }
.rr-faq summary { cursor: pointer; list-style: none; padding: 17px 18px; font-family: var(--serif); font-weight: 600; font-size: 1.06rem; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.rr-faq summary::-webkit-details-marker { display: none; }
.rr-faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--teal); font-weight: 400; flex: none; transition: transform .2s; }
.rr-faq details[open] summary::after { transform: rotate(45deg); }
.rr-faq summary:hover { color: var(--teal); }
.rr-faq__body { padding: 0 18px 18px; color: var(--ink-soft); font-size: .94rem; }
.rr-faq__body p:last-child { margin-bottom: 0; }

/* =======================  TOOLS  ======================= */
.rr-toolgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.rr-tool { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 0; padding: 20px; text-decoration: none; color: var(--ink); box-shadow: none; transition: transform .15s, background .2s; overflow: hidden; }
.rr-tool::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); transform: translateY(2px); transition: transform .25s; }
.rr-tool:hover { transform: translateY(-3px); background: var(--card); color: var(--ink); }
.rr-tool:hover::after { transform: translateY(0); }
.rr-tool__logo { width: 40px; height: 40px; border-radius: 0; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.05rem; }
.rr-tool h4 { margin: 0; color: #fff; font-family: var(--serif); }
.rr-tool p { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.rr-tool__meta { margin-top: auto; font-family: var(--mono); font-size: .72rem; color: var(--teal); font-weight: 400; }
.rr-tool:hover .rr-tool__meta { text-decoration: none; color: #fff; }

.lg-wise { background: #2563c9; } .lg-revolut { background: #0b0d12; } .lg-payoneer { background: #ff4800; } .lg-okx { background: #000; } .lg-n26 { background: #1d8a73; }

/* =======================  STRIP / CTA  ======================= */
.rr-strip { background: linear-gradient(135deg, rgba(198,242,78,.06), transparent 60%), var(--paper-2); color: var(--ink); border: 1px solid var(--teal); border-radius: 0; padding: clamp(30px, 5vw, 50px); position: relative; overflow: hidden; box-shadow: inset 0 0 60px rgba(198,242,78,.05); }
.rr-strip::after { display: none; }
.rr-strip h2 { color: #fff; max-width: 20ch; }
.rr-strip p { color: var(--ink-soft); max-width: 50ch; }
.rr-strip .rr-btn--ghost { background: transparent; border-color: var(--teal); color: var(--teal); }
.rr-strip .rr-btn--ghost:hover { background: var(--teal); color: #0B0E13; }

/* stats */
.rr-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 0; padding: 0; box-shadow: none; }
.rr-stat { text-align: left; padding: clamp(18px,2.4vw,26px); border-right: 1px solid var(--line); position: relative; }
.rr-stat:last-child { border-right: 0; }
.rr-stat + .rr-stat::before { display: none; }
.rr-stat b { display: block; font-family: var(--serif); font-size: clamp(1.9rem,4vw,2.8rem); font-weight: 700; color: var(--teal); line-height: 1; letter-spacing: 0; -webkit-text-fill-color: var(--teal); background: none; }
.rr-stat span { font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); display: block; margin-top: 9px; }
@media (max-width: 700px) { .rr-stats { grid-template-columns: repeat(2,1fr); } .rr-stat:nth-child(2){border-right:0} .rr-stat:nth-child(-n+2){border-bottom:1px solid var(--line)} }

/* prominent sponsored strip (homepage, high) */
.rr-promo { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; border: 1px solid var(--line-2); border-left: 3px solid var(--amber); background: var(--paper-2); padding: 16px 20px; position: relative; }
.rr-promo::before { content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); }
.rr-promo__tag { font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(242,193,78,.4); padding: 4px 9px; white-space: nowrap; flex: none; }
.rr-promo__body { flex: 1 1 300px; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.rr-promo__body b { color: #fff; font-weight: 600; }
.rr-promo .rr-btn { white-space: nowrap; min-height: 44px; padding: 11px 18px; font-size: .82rem; }

/* trust strip */
.rr-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.rr-trust__inner { display: flex; align-items: center; gap: clamp(16px,4vw,40px); padding: 16px 0; flex-wrap: wrap; }
.rr-trust__label { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.rr-trust__logos { display: flex; align-items: center; gap: clamp(14px,3vw,34px); flex-wrap: wrap; }
.rr-trustlogo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--ink-soft); opacity: .85; transition: opacity .2s, color .2s; }
.rr-trustlogo:hover { opacity: 1; color: #fff; }
.rr-trustlogo span { width: 24px; height: 24px; border-radius: 0; border: 1px solid var(--line-2); display: grid; place-items: center; color: #fff; font-size: .74rem; }

/* =======================  FOOTER  ======================= */
.rr-foot { margin-top: 0; background: #06080C; border-top: 1px solid var(--line-2); color: var(--ink-soft); padding: clamp(38px,6vw,62px) 0 26px; position: relative; }
.rr-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--teal); }
.rr-foot::after { display: none; }
.rr-foot .rr-wrap { position: relative; z-index: 1; }
.rr-foot a { color: var(--ink-soft); text-decoration: none; }
.rr-foot a:hover { color: var(--teal); }
.rr-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px,4vw,40px); }
@media (max-width: 760px) { .rr-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .rr-foot__grid { grid-template-columns: 1fr; } }
.rr-foot__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.24rem; color: #fff; margin-bottom: 14px; }
.rr-foot__brand .rr-brand__mark { width: 30px; height: 30px; box-shadow: none; }
.rr-foot p { font-size: .9rem; color: var(--ink-soft); max-width: 36ch; }
.rr-foot h5 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 500; position: relative; padding-bottom: 10px; }
.rr-foot h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 16px; height: 2px; background: var(--teal); }
.rr-foot ul { list-style: none; margin: 0; padding: 0; }
.rr-foot li { margin-bottom: 9px; font-size: .92rem; }
.rr-foot li a { position: relative; transition: padding-left .18s, color .18s; }
.rr-foot li a:hover { padding-left: 8px; }
.rr-foot li a::before { content: "›"; position: absolute; left: -10px; opacity: 0; color: var(--teal); transition: opacity .18s; }
.rr-foot li a:hover::before { opacity: 1; }
.rr-foot__spon { margin-top: 28px; padding: 16px 18px; background: transparent; border: 1px solid var(--line-2); border-radius: 0; }
.rr-foot__spon .rr-sponsor__tag { color: var(--amber); border-color: rgba(242,193,78,.4); }
.rr-foot__spon p { color: var(--ink-soft); margin: 8px 0 12px; font-size: .85rem; max-width: none; }
.rr-foot__bottom { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); }
.rr-foot__bottom .links { display: flex; flex-wrap: wrap; gap: 18px; }

/* breadcrumb */
.rr-crumb { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.rr-crumb a { color: var(--ink-faint); text-decoration: none; }
.rr-crumb a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.rr-crumb a:hover { color: var(--teal); }
.rr-crumb span { color: var(--line-2); }

/* transit */
.rr-transit { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.rr-transit__card { max-width: 480px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 0; padding: 40px 32px; box-shadow: var(--shadow-m); }
.rr-transit__spin { width: 44px; height: 44px; border: 2px solid var(--line-2); border-top-color: var(--teal); border-radius: 50%; margin: 0 auto 22px; animation: rr-spin 0.9s linear infinite; }
@keyframes rr-spin { to { transform: rotate(360deg); } }

/* reading progress */
.rr-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: var(--teal); transition: width .1s linear; box-shadow: 0 0 8px var(--glow); }

/* utility */
.rr-center { text-align: center; }
.rr-mt-l { margin-top: clamp(28px,4vw,44px); }
.rr-divider { height: 1px; background: var(--line-2); border: 0; margin: clamp(40px,6vw,72px) 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .rr-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  .rr-reveal.rr-rise { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rr-matrixcard__head::before { animation: none; }
}

@media (max-width: 560px) {
  .rr-prose a:not(.rr-btn),
  .rr-faq__body a,
  .rr-disclosure a,
  .rr-note a,
  .rr-incontext a:not(.rr-btn),
  .rr-promo__body a,
  .rr-sponsor p a,
  .rr-strip p a,
  .rr-foot a,
  .rr-foot__bottom a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }

  .rr-foot li { margin-bottom: 0; }
}

/* language switcher (EN / 中) */
.rr-lang { display: inline-flex; align-items: center; border: 1px solid var(--line-2); margin-left: 10px; font-family: var(--mono); font-size: .72rem; }
.rr-lang a { padding: 7px 11px; color: var(--ink-soft); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.rr-lang a + a { border-left: 1px solid var(--line-2); }
.rr-lang a:hover { color: #fff; }
.rr-lang a.on { background: var(--teal); color: #0B0E13; font-weight: 700; }
@media (max-width: 880px){ .rr-nav .rr-lang { margin: 8px 0 0; } }
