/* ─────────────────────────────────────────────────────────
   XRPY — XRP Yield Token
   Self-contained stylesheet. No external assets or fonts.

   Motion: every animation is opt-out via prefers-reduced-motion
   (see the block at the very bottom). Scroll-reveal start states
   are scoped to html.js so the page is fully visible if JS
   never runs.
   ───────────────────────────────────────────────────────── */

:root {
  --bg:          #07080a;
  --bg-alt:      #0b0d11;
  --surface:     #101319;
  --surface-2:   #151922;
  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);

  --text:        #e9ecf1;
  --text-dim:    #a2a9b6;
  /* 5.3:1 on --bg. The previous #6f7684 measured 4.38:1 and failed WCAG AA for
     normal text, which this is used for (.fine, captions, the range scale). */
  --text-faint:  #7d8595;

  --accent:      #3fe0c5;
  --accent-2:    #5b8cff;
  --warn:        #f0b429;

  --wrap:        1120px;
  --radius:      14px;
  --radius-lg:   20px;

  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring:   cubic-bezier(.34, 1.56, .64, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

/* Every section shares one container width so left edges align down the page.
   Text-heavy blocks are capped individually rather than by narrowing the wrap,
   which would centre them and break that alignment. */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #04140f; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top .25s var(--spring);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════ */

@keyframes fade-up   { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise      { from { opacity: 0; transform: translate3d(0, 105%, 0); } to { opacity: 1; transform: none; } }
@keyframes pop       { from { opacity: 0; transform: scale(.94) translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(63, 224, 197, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(63, 224, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 224, 197, 0); }
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@keyframes drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(7vw, 4vh, 0) scale(1.14); }
  66%      { transform: translate3d(-4vw, 7vh, 0) scale(.9); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  40%      { transform: translate3d(-8vw, 6vh, 0) scale(.88); }
  70%      { transform: translate3d(5vw, -4vh, 0) scale(1.2); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.95); }
  50%      { transform: translate3d(6vw, -6vh, 0) scale(1.25); }
}

@keyframes pan-grid { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(56px, 56px, 0); } }

@keyframes sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(320%) skewX(-18deg); } }

/* -50%, not -100%: the track holds two identical sets, so one set-width is
   half the track. Going the full width would scroll both sets off and leave
   the strip empty for the back half of every cycle. */
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

@keyframes draw { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@keyframes flash-accent {
  0%   { color: var(--accent); transform: translateY(-2px); }
  100% { color: inherit; transform: none; }
}

/* ═══════════════════════════════════════════════════════
   REVEAL SYSTEM
   Elements start hidden only when JS is present; the
   observer in app.js adds .in to play them.
   ═══════════════════════════════════════════════════════ */

.js [data-reveal] { opacity: 0; }
.js [data-reveal].in {
  animation: fade-up .78s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

/* Hero intro plays on load rather than on scroll. */
.js .intro { opacity: 0; animation: fade-up .85s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.js .rate-card.intro { animation-name: pop; animation-duration: .95s; }

/* Headline lines wipe upward from behind a mask. */
h1 .line { display: block; overflow: hidden; }
.js h1 .line { opacity: 0; }
.js h1 .line.intro { animation: rise .9s var(--ease-out) both; animation-delay: var(--d, 0ms); }

/* Fact rows cascade in one by one. */
.js .facts tr[data-row] { opacity: 0; }
.js .facts.in tr[data-row] {
  animation: fade-up .55s var(--ease-out) both;
  animation-delay: calc(var(--row, 0) * 55ms);
}

/* Finished state. app.js swaps this in on animationend so the keyframes stop
   holding `transform`, which would otherwise block the pointer tilt.

   !important is deliberate: some animation selectors above are more specific
   than this one (`.js .rate-card.intro` scores (0,3,0) against `.js .revealed`
   at (0,2,0)), and without it they can keep the element pinned to the
   keyframes' transparent `from` state. app.js also strips the .in/.intro
   classes, but this makes the finished state win by construction rather than
   by out-counting selectors.

   Do NOT add `transform: none` here — it would override the .tilt transform.
   Cancelling the animation already releases transform back to the class rule. */
.js [data-reveal].revealed,
.js .revealed,
.js h1 .line.revealed {
  opacity: 1 !important;
  animation: none !important;
}

/* ═══════════════════════════════════════════════════════
   SCROLL PROGRESS
   ═══════════════════════════════════════════════════════ */

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(63, 224, 197, .6);
  transition: width .12s linear;
}

/* ═══════════════════════════════════════════════════════
   TYPE
   ═══════════════════════════════════════════════════════ */

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.022em; font-weight: 640; }

h1 { font-size: clamp(2.5rem, 6.2vw, 4.1rem); letter-spacing: -.032em; }
h1 .line { padding-bottom: .06em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.0625rem; letter-spacing: -.01em; }
.h-sm { font-size: 1.25rem; }

p { margin: 0; }

.eyebrow {
  font-size: .75rem; font-weight: 620; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}

.lede { font-size: 1.125rem; color: var(--text-dim); max-width: 54ch; }
.lede.sm { font-size: 1rem; }

.fine { font-size: .8125rem; line-height: 1.6; color: var(--text-faint); }

.grad {
  background: linear-gradient(96deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shift-grad 7s linear infinite;
}
@keyframes shift-grad { to { background-position: 220% 0; } }

a { color: inherit; }

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px;
  background: var(--text); color: #08090c;
  border: 1px solid transparent; border-radius: 10px;
  font-size: .9375rem; font-weight: 620; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .28s var(--spring), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .28s var(--ease);
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: #fff;
  box-shadow: 0 14px 30px -12px rgba(63, 224, 197, .45);
}
.btn:active { transform: translateY(-1px) scale(.99); }

/* Light sweeps across the button on hover. */
.btn-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}
.btn-shine:hover::after { animation: sheen .85s var(--ease) forwards; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover {
  background: rgba(255, 255, 255, .06); border-color: var(--accent);
  box-shadow: 0 14px 30px -14px rgba(91, 140, 255, .5);
}

.btn-sm { padding: 9px 17px; font-size: .875rem; }

/* ── Click ripple ─────────────────────────────────────────
   Spawned by app.js at the pointer-down point on buttons and
   chips, clipped by their overflow:hidden. A nod to the XRP
   namesake as much as a affordance.
   ─────────────────────────────────────────────────────── */

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  transform: scale(0);
  animation: ripple .6s var(--ease-out) forwards;
}
.ripple-light { background: radial-gradient(circle, rgba(63, 224, 197, .38), rgba(63, 224, 197, 0) 70%); }
.ripple-dark  { background: radial-gradient(circle, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 70%); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* While the pointer is inside a magnetic button it tracks tightly; on leave
   the class drops and the slow spring on .btn carries it back to centre. */
.magnet-on { transition: transform .12s var(--ease-out) !important; }

/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease),
              height .35s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 93%, transparent);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.brand-mark svg { transition: transform .5s var(--spring); }
.brand:hover .brand-mark svg { transform: rotate(180deg) scale(1.1); }

.brand-mark .mark-a, .brand-mark .mark-b { stroke-dasharray: 44; }
.js .brand-mark .mark-a { animation: draw 1s var(--ease-out) .2s both; }
.js .brand-mark .mark-b { animation: draw 1s var(--ease-out) .35s both; opacity: .45; }

.brand-text { font-weight: 700; font-size: 1.0625rem; letter-spacing: .04em; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative; font-size: .9rem; color: var(--text-dim);
  text-decoration: none; transition: color .25s var(--ease);
  padding-block: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a span { display: inline-block; transition: transform .35s var(--spring); }
.nav-links a:hover span { transform: translateY(-2px); }

@media (max-width: 860px) { .nav-links { display: none; } }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */

.hero { position: relative; overflow: hidden; padding: clamp(72px, 11vw, 128px) 0 clamp(64px, 9vw, 104px); }

.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.blob {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(70px); will-change: transform;
}
.blob-1 {
  width: 46vw; height: 46vw; left: 4%; top: -18%;
  background: radial-gradient(circle, rgba(63, 224, 197, .30), transparent 68%);
  animation: drift-1 21s var(--ease) infinite;
}
.blob-2 {
  width: 40vw; height: 40vw; right: 2%; top: -10%;
  background: radial-gradient(circle, rgba(91, 140, 255, .28), transparent 68%);
  animation: drift-2 26s var(--ease) infinite;
}
.blob-3 {
  width: 32vw; height: 32vw; left: 38%; bottom: -24%;
  background: radial-gradient(circle, rgba(120, 90, 255, .20), transparent 70%);
  animation: drift-3 31s var(--ease) infinite;
}

/* Faint grid that pans diagonally, fading out toward the bottom.

   The moving grid lives on ::before rather than on this element, and travels by
   transform instead of background-position. Animating background-position
   repaints a full-viewport layer on every frame; transform is compositor-only
   and costs nothing per frame. The wrapper keeps the mask and clips the
   oversized child. Translating exactly one 56px tile makes the loop seamless. */
.grid-pan {
  position: absolute; inset: 0; opacity: .5; overflow: hidden;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 34%, #000 25%, transparent 78%);
          mask-image: radial-gradient(72% 62% at 50% 34%, #000 25%, transparent 78%);
}
.grid-pan::before {
  content: ""; position: absolute; inset: -60px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: pan-grid 8s linear infinite;
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 76px); align-items: center;
}
/* Grid items default to min-width:auto and refuse to shrink below their
   min-content width — which forces horizontal page scroll on narrow screens. */
.hero-inner > * { min-width: 0; }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-copy h1 { margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: .8125rem; color: var(--text-faint); }

/* ── Rate card ────────────────────────────────────────── */

.rate-card {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 5vw, 28px);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, .85);
}

/* Slow light sweep across the card, permanently. */
.card-sheen {
  position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: sheen 6.5s var(--ease) 1.6s infinite;
  pointer-events: none;
}

.rate-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(63, 224, 197, .1);
  border: 1px solid rgba(63, 224, 197, .26);
  color: var(--accent);
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse-ring 2.6s var(--ease) infinite;
}

.ticker { font-size: .75rem; font-weight: 660; letter-spacing: .12em; color: var(--text-faint); }

.rate-figure { display: flex; align-items: baseline; gap: 3px; }
.rate-num {
  font-size: clamp(3.75rem, 8.5vw, 5.25rem);
  font-weight: 660; letter-spacing: -.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rate-pct { font-size: 2rem; font-weight: 560; color: var(--text-dim); }
.rate-label { margin-top: 8px; font-size: .875rem; color: var(--text-dim); }

.rate-grid { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.rate-grid > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.rate-grid dt { font-size: .8125rem; color: var(--text-faint); }
.rate-grid dd { margin: 0; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Pointer tilt ─────────────────────────────────────────
   app.js writes --rx/--ry/--mx/--my from pointer position.
   ─────────────────────────────────────────────────────── */

.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .5s var(--ease-out), border-color .3s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.tilt.is-tilting { transition: transform .09s linear; }

/* Cursor-following glow inside tilting cards. */
.tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(63, 224, 197, .12), transparent 62%);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.tilt.is-tilting::before { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════ */

.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-set { display: flex; align-items: center; flex-shrink: 0; }
.marquee-set b {
  font-size: .8125rem; font-weight: 620; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}
.marquee-set i { color: var(--accent); font-style: normal; margin: 0 26px; font-size: .625rem; }

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */

.section { padding: clamp(64px, 8.5vw, 108px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { margin-bottom: 18px; }

/* ── Steps ────────────────────────────────────────────── */

.steps, .features {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.steps > *, .features > * { min-width: 0; }

.steps-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1040px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .steps, .features { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: 1fr; }
}

.features li { padding: 26px 24px 28px; }
.features h3 { margin-bottom: 8px; color: var(--accent); }
.features p { font-size: .9375rem; color: var(--text-dim); }

.steps li, .features li {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.steps li:hover, .features li:hover { border-color: var(--line-strong); box-shadow: 0 22px 45px -26px rgba(0, 0, 0, .9); }

.step-n {
  display: block; margin-bottom: 16px;
  font-size: .75rem; font-weight: 680; letter-spacing: .1em;
  color: var(--accent); font-variant-numeric: tabular-nums;
  transition: transform .4s var(--spring);
}
.steps li:hover .step-n { transform: translateX(4px); }
.steps h3 { margin-bottom: 9px; }
.steps p { font-size: .9375rem; color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════
   CALCULATOR
   ═══════════════════════════════════════════════════════ */

.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px); align-items: center;
}
.calc-wrap > * { min-width: 0; }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } }

.calc-copy .lede { margin-bottom: 16px; }

.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 5vw, 28px);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.calc:focus-within { border-color: rgba(63, 224, 197, .35); box-shadow: 0 0 0 4px rgba(63, 224, 197, .06); }

.calc-label { display: block; margin-bottom: 10px; font-size: .8125rem; font-weight: 600; color: var(--text-dim); }

.calc-input {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 11px; padding: 4px 18px 4px 4px;
  transition: border-color .3s var(--ease), transform .3s var(--spring);
}
.calc-input:focus-within { border-color: var(--accent); transform: translateY(-2px); }

.calc-input input {
  flex: 1; width: 100%; min-width: 0;
  background: none; border: 0; color: var(--text);
  padding: 15px 16px;
  font: inherit; font-size: 1.375rem; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.015em;
}
.calc-input input:focus { outline: none; }

.calc-unit { font-size: .8125rem; font-weight: 660; letter-spacing: .1em; color: var(--text-faint); flex-shrink: 0; }

/* Preset amount chips.
   position:relative anchors .chip-indicator — the pill that slides between
   chips; the active chip itself goes transparent so the indicator can carry
   the highlight while it travels. */
.calc-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip-indicator {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  border-radius: 999px; pointer-events: none; opacity: 0;
  background: rgba(63, 224, 197, .1);
  border: 1px solid rgba(63, 224, 197, .45);
  box-shadow: 0 0 22px -6px rgba(63, 224, 197, .55);
}
.chip-indicator.ready {
  transition: left .45s var(--spring), top .45s var(--spring),
              width .45s var(--spring), height .45s var(--spring),
              opacity .25s var(--ease);
}
.chip {
  position: relative; overflow: hidden;   /* clips the click ripple */
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--text-dim); font: inherit; font-size: .8125rem; font-weight: 600;
  transition: transform .3s var(--spring), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { transform: translateY(-2px); color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .08); }
.chip:active { transform: translateY(0) scale(.95); }
/* The sliding indicator carries the active visuals; the chip only recolours.
   Keeping its own bg/border transparent avoids a double outline mid-slide. */
.chip.is-active { color: var(--accent); border-color: transparent; background: transparent; animation: chip-pop .35s var(--spring); }
@keyframes chip-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* ── Time-horizon slider ──────────────────────────────── */

.calc-horizon { margin-top: 22px; }
.calc-horizon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc-horizon-head .calc-label { margin-bottom: 0; }
.horizon-value { font-size: .9375rem; font-weight: 640; color: var(--accent); font-variant-numeric: tabular-nums; }

.range-wrap { position: relative; margin-top: 12px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 4px; border-radius: 999px;
  /* --pct is written from JS; the gradient is the filled part of the track. */
  background: linear-gradient(90deg, var(--accent) var(--pct, 9%), rgba(255, 255, 255, .12) var(--pct, 9%));
  outline-offset: 6px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: none;
  box-shadow: 0 0 0 4px rgba(63, 224, 197, .25), 0 2px 10px rgba(0, 0, 0, .6);
  transition: transform .25s var(--spring), box-shadow .25s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(63, 224, 197, .3), 0 2px 12px rgba(0, 0, 0, .6); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.3); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: none;
  box-shadow: 0 0 0 4px rgba(63, 224, 197, .25), 0 2px 10px rgba(0, 0, 0, .6);
  transition: transform .25s var(--spring);
}
input[type="range"]::-moz-range-thumb:hover { transform: scale(1.18); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }

/* Value bubble that rides the thumb while interacting. */
.range-bubble {
  position: absolute; bottom: 22px; left: 0;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 9px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--accent); font-size: .75rem; font-weight: 640;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .3s var(--spring);
}
.range-wrap:hover .range-bubble,
.range-wrap:focus-within .range-bubble { opacity: 1; transform: translateX(-50%) translateY(0); }

.range-scale { display: flex; justify-content: space-between; margin-top: 8px; }
.range-scale span { font-size: .6875rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ── Growth chart ─────────────────────────────────────── */

.chart { position: relative; height: 168px; margin-top: 18px; }
.chart svg { width: 100%; height: 100%; display: block; }

.chart-base { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 4 5; }
.chart-area { fill: url(#gfill); opacity: 0; transition: opacity .8s var(--ease); }
.chart.drawn .chart-area { opacity: 1; }
.chart-line {
  fill: none; stroke: var(--accent); stroke-width: 2.25;
  filter: drop-shadow(0 0 6px rgba(63, 224, 197, .45));
}
.chart-scrub line { stroke: rgba(255, 255, 255, .22); stroke-dasharray: 3 4; }
.chart-scrub circle {
  fill: var(--accent); stroke: #06231d; stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(63, 224, 197, .8));
}

/* Scrub tooltip. JS positions it; transform keeps it centred on the guide. */
.chart-tip {
  position: absolute; top: 0; left: 0; z-index: 2;
  transform: translate(-50%, -110%);
  padding: 8px 11px; border-radius: 9px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .9);
  pointer-events: none; white-space: nowrap;
  opacity: 0; transition: opacity .18s var(--ease);
}
.chart-tip.on { opacity: 1; }
.chart-tip b { display: block; font-size: .6875rem; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.chart-tip span { display: block; font-size: .875rem; font-weight: 640; font-variant-numeric: tabular-nums; }
.chart-tip em { display: block; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }

.chart-scale { display: flex; justify-content: space-between; margin-top: 6px; }

/* Shown when the balance is under the 10 XRPY earning floor. */
.calc-warning {
  margin-top: 14px; padding: 11px 14px; border-radius: 9px;
  background: rgba(240, 180, 41, .09);
  border: 1px solid rgba(240, 180, 41, .32);
  color: var(--warn);
  font-size: .8125rem; line-height: 1.5;
}
.calc-warning[hidden] { display: none; }

.calc-out { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }

.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc-row span { font-size: .875rem; color: var(--text-dim); }
.calc-row strong { font-size: .9375rem; font-weight: 620; font-variant-numeric: tabular-nums; }
.calc-row-lead strong { font-size: 1.25rem; color: var(--accent); }
.calc-row-total { margin-top: 4px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* Brief accent flash when a figure changes. */
.calc-row strong.bumped { animation: flash-accent .55s var(--ease-out); }

/* ── Live accrual illustration ────────────────────────── */

.accrual { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.accrual-head { display: flex; align-items: center; gap: 9px; font-size: .8125rem; color: var(--text-dim); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
  animation: blink 1.4s var(--ease) infinite;
}
.accrual-value {
  margin-top: 9px;
  font-size: 1.5rem; font-weight: 660; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.accrual-value em { font-style: normal; font-size: .8125rem; font-weight: 620; letter-spacing: .1em; color: var(--text-faint); }
.accrual-note { margin-top: 8px; }

/* ═══════════════════════════════════════════════════════
   FACTS TABLE
   ═══════════════════════════════════════════════════════ */

.table-scroll {
  margin-top: 36px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}

.facts { width: 100%; border-collapse: collapse; min-width: 460px; }
.facts th, .facts td {
  text-align: left; padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem; vertical-align: top;
}
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { font-weight: 500; color: var(--text-dim); width: 40%; transition: color .25s var(--ease); }
.facts td { font-weight: 560; }
.facts tr { transition: background .3s var(--ease); }
.facts tbody tr:hover { background: rgba(255, 255, 255, .028); }
.facts tbody tr:hover th { color: var(--text); }

/* ═══════════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════════ */

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ═══════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════ */

.faq { margin-top: 36px; max-width: 820px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0; position: relative;
  font-size: 1rem; font-weight: 600; letter-spacing: -.008em;
  transition: color .25s var(--ease), padding-left .35s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); padding-left: 8px; }

.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform .4s var(--spring), border-color .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover::after { border-color: var(--accent); }

/* Height is animated from JS; overflow keeps the text clipped while it moves. */
.faq-body { overflow: hidden; transition: height .4s var(--ease-out); }
.faq-body p {
  padding: 0 32px 24px 0;
  font-size: .9375rem; color: var(--text-dim); max-width: 62ch;
  transition: opacity .3s var(--ease) .05s, transform .4s var(--ease-out) .05s;
}
.js .faq details:not([open]) .faq-body p { opacity: 0; transform: translateY(-6px); }

/* ═══════════════════════════════════════════════════════
   DISCLOSURE + FOOTER
   ═══════════════════════════════════════════════════════ */

.disclosure { background: var(--bg-alt); border-top: 1px solid var(--line); }
.disclosure h2 { margin-bottom: 16px; }
.disclosure p { font-size: .875rem; color: var(--text-dim); margin-bottom: 14px; max-width: 74ch; }

.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-brand .fine { margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { position: relative; font-size: .875rem; color: var(--text-dim); text-decoration: none; transition: color .25s var(--ease); }
.footer-links a span { display: inline-block; transition: transform .35s var(--spring); }
.footer-links a:hover { color: var(--text); }
.footer-links a:hover span { transform: translateY(-2px); }
.footer-legal { flex-basis: 100%; }

/* ═══════════════════════════════════════════════════════
   ON-LEDGER DETAILS

   The issuer address and currency code are the two values a
   holder must get exactly right, so they are monospace, kept
   whole, and copyable rather than something to retype.
   ═══════════════════════════════════════════════════════ */

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, "Cascadia Mono", monospace;
  font-size: .8125em; letter-spacing: -.01em;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--text);
}
/* The 40-char currency code has no natural break points and would otherwise
   force the facts table into a horizontal scroll on narrow screens. */
.mono.break { word-break: break-all; }

.copy {
  margin-left: 8px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  background: rgba(63, 224, 197, .1);
  border: 1px solid rgba(63, 224, 197, .3);
  color: var(--accent);
  font: inherit; font-size: .6875rem; font-weight: 640;
  letter-spacing: .04em; text-transform: uppercase;
  vertical-align: middle; white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--spring);
}
.copy:hover { background: rgba(63, 224, 197, .18); transform: translateY(-1px); }
.copy:active { transform: translateY(0) scale(.95); }
.copy.copied { background: var(--accent); color: #04140f; border-color: var(--accent); }

.trustline {
  margin-top: 34px; padding: 26px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.trustline-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 12px; margin-bottom: 20px;
}
.trustline-head h3 { font-size: 1rem; }
.explorer-link {
  font-size: .8125rem; font-weight: 620; color: var(--accent);
  text-decoration: none; transition: opacity .25s var(--ease);
}
.explorer-link:hover { opacity: .75; text-decoration: underline; }

.trustline-grid { margin: 0; display: grid; gap: 18px; }
.trustline-grid dt {
  font-size: .75rem; font-weight: 620; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px;
}
.trustline-grid dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.trustline-note { margin-top: 20px; }
.trustline-note code { font-size: .9em; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); }

.facts td .mono { display: inline-block; max-width: 100%; }
.facts td .copy { margin-top: 4px; }

/* 404 styles intentionally live inside 404.html, not here — that page must
   render standalone at any URL a host throws it at. See the note in the file. */

/* ═══════════════════════════════════════════════════════
   PLACEHOLDER MARKERS
   Everything the issuer still has to supply is flagged in
   amber. Remove the [data-placeholder] attributes — not this
   rule — as each item is filled in. See README.md.
   ═══════════════════════════════════════════════════════ */

[data-placeholder] { color: var(--warn) !important; }
td[data-placeholder] { font-style: italic; font-weight: 500; }

p.inline-note {
  margin-top: 32px; padding: 15px 18px;
  background: rgba(240, 180, 41, .07);
  border: 1px dashed rgba(240, 180, 41, .38);
  border-radius: 10px;
  font-size: .875rem; line-height: 1.55;
}
.inline-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em; padding: 1px 5px; border-radius: 4px;
  background: rgba(255, 255, 255, .07);
}

[data-placeholder-link] {
  background: transparent; color: var(--warn);
  border: 1px dashed rgba(240, 180, 41, .5);
}
[data-placeholder-link]:hover { background: rgba(240, 180, 41, .08); box-shadow: none; }

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION
   Kills every animation and transition, and forces all
   reveal/intro states to their finished appearance so no
   content can be left invisible. app.js makes the matching
   decision for its JS-driven motion.
   ═══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal],
  .js [data-reveal].in,
  .js .intro,
  .js h1 .line,
  .js h1 .line.intro,
  .js .facts tr[data-row] {
    opacity: 1 !important;
    transform: none !important;
  }

  .js .faq details:not([open]) .faq-body p { opacity: 1; transform: none; }

  .aurora, .card-sheen { display: none; }
  .marquee { display: none; }
}
