/* ===================== Fonts ===================== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMonoNL-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===================== Tokens ===================== */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ===================== Reset / base ===================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #FAFAFA; }
body {
  font-family: var(--font-sans);
  color: #0A0A0A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }

/* ===================== Interactions ===================== */
.rl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 120ms cubic-bezier(0.2, 0, 0, 1);
}
.rl-card:hover { border-color: #D4D4D4; }
/* Push the "Fix this" CTA to the bottom so same-row cards align.
   Override the inline margin-top with !important; the 11px min gap above
   the CTA is preserved by margin-bottom on the FIX block below. */
.rl-fixlink { margin-top: auto !important; }

.rl-fixlink {
  transition: background 120ms cubic-bezier(0.2, 0, 0, 1),
              border-color 120ms cubic-bezier(0.2, 0, 0, 1);
}
.rl-fixlink:hover { background: #F5F5F5; border-color: #D4D4D4; }
.rl-fixlink svg { transition: transform 120ms cubic-bezier(0.2, 0, 0, 1); }
.rl-fixlink:hover svg { transform: translateX(3px); }

.rl-input-dark::placeholder { color: #9CA3AF; }
.rl-input-dark:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}
.rl-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0A0A0A;
}

.rl-rescue-main a:focus-visible,
.rl-rescue-main button:focus-visible,
.rl-rescue-header button:focus-visible {
  outline: 2px solid #15803D;
  outline-offset: 3px;
}

.rl-input-label {
  display: block;
  margin: 0 0 6px;
  color: #D4D4D4;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* ===================== Rescue hierarchy ===================== */
.rl-rescue-hero {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 44px 42px !important;
  border: 1px solid #DDE8DF;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 4%, rgba(34, 197, 94, 0.16), transparent 36%),
    linear-gradient(145deg, #FFFFFF 0%, #F4F9F5 100%);
}
.rl-hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 650;
  color: #737373;
  margin-bottom: 10px;
}
.rl-rescue-hero .rl-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 5px 10px;
  border: 1px solid #CFE2D3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #166534;
}

.rl-service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, 0.65fr);
  gap: 30px;
  align-items: stretch;
}
.rl-support-packet {
  padding-left: 26px;
  border-left: 1px solid #333333;
}
.rl-support-summary,
.rl-issue-summary {
  list-style: none;
}
.rl-support-summary::-webkit-details-marker,
.rl-issue-summary::-webkit-details-marker {
  display: none;
}
.rl-support-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  margin: 0 0 13px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
}
.rl-support-chevron,
.rl-issue-chevron {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 120ms cubic-bezier(0.2, 0, 0, 1);
}
.rl-support-packet[open] .rl-support-chevron,
.rl-issue-group[open] .rl-issue-chevron {
  transform: rotate(180deg);
}
.rl-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}
.rl-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  color: #525252;
  font-size: 12px;
  font-weight: 550;
}

/* "Works across [chains] and [tokens]" strip under the trace card. Full-color
   brand marks; quiet gray labels so it reads as reassurance, not decoration. */
.rl-chain-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  background: #fff;
}
.rl-chain-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #737373;
}
.rl-chain-marks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rl-chain-marks svg {
  display: block;
  border-radius: 50%;
}
/* Circular clip wrapper for the official logos. overflow:hidden crops full-bleed
   square art (Base, Solana) into a circle — border-radius on the <img> alone won't. */
.rl-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
}
.rl-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Stellar ships a transparent glyph (no disc). A light backer + inset padding
   make it read as a circular mark in line with the disc-backed logos. */
.rl-mark.rl-mark-backed {
  background: #F4F4F5;
}
.rl-mark.rl-mark-backed img {
  padding: 2px;
  box-sizing: border-box;
  object-fit: contain;
}
/* Chain logos sitting inside a light CTA. Deliberately not overlapped: at 18px the
   discs are already small, and lapping them cropped Base and BNB into unreadable
   slivers. A 3px gap keeps all five legible and matches the "works across" strip. */
.rl-mark-stack {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
/* Lightning rail. The hover MUST stay light: the anchor carries an inline
   color:#0A0A0A, so darkening the background here once made the label and its
   currentColor arrow nearly invisible. */
.rl-btc-entry {
  transition: background-color 0.15s ease;
}
.rl-btc-entry:hover {
  background: #F1F1F1 !important;
}
/* Below this width the marks, label, arrow and padding no longer fit inside the
   card and white-space:nowrap would push the CTA past its edge. The chains are
   already named in the "works across" strip at the top of the page, so dropping
   them here costs nothing. */
@media (max-width: 560px) {
  .rl-mark-stack {
    display: none;
  }
}

.rl-answer-section {
  padding: 58px 0 34px;
}
.rl-quick-answer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
  padding: 30px;
  border: 1px solid #DDE8DF;
  border-radius: 20px;
  background: #F4F9F5;
}
.rl-answer-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #15803D;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.rl-quick-answer h2 {
  margin: 0;
  max-width: 430px;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.rl-quick-answer > p {
  margin: 4px 0 0;
  color: #3F4A42;
  font-size: 14.5px;
  line-height: 1.7;
}
.rl-path-title {
  margin: 30px 0 14px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.rl-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rl-stage {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #E5E7E5;
  border-radius: 14px;
  background: #FFFFFF;
}
.rl-stage-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 8px;
  background: #0A0A0A;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}
.rl-stage h3 {
  margin: 1px 0 5px;
  font-size: 12.5px;
  line-height: 1.3;
}
.rl-stage p {
  margin: 0;
  color: #626262;
  font-size: 11.5px;
  line-height: 1.5;
}
.rl-causes-section {
  padding: 26px 0 4px;
  border-top: 1px solid #E5E7E5;
}
.rl-section-heading {
  margin-bottom: 28px;
  max-width: 680px;
}
.rl-section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.rl-section-heading p {
  margin: 0;
  color: #626262;
  font-size: 14px;
  line-height: 1.6;
}
.rl-issue-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 0 0 12px;
  cursor: pointer;
}
.rl-issue-group:not([open]) .rl-issue-summary {
  margin-bottom: 0;
}
.rl-issue-chevron {
  margin-left: auto;
  color: #737373;
}

@media (max-width: 720px) {
  .rl-header-inner,
  .rl-main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .rl-rescue-hero {
    margin-top: 16px;
    padding: 24px 20px !important;
    border-radius: 20px;
  }
  .rl-rescue-main #service {
    padding-top: 12px !important;
  }
  .rl-service-card {
    padding: 18px !important;
    border-radius: 18px !important;
  }
  .rl-service-title {
    margin-bottom: 8px !important;
  }
  .rl-service-copy {
    margin-bottom: 12px !important;
  }
  .rl-service-grid,
  .rl-quick-answer {
    grid-template-columns: minmax(0, 1fr);
  }
  .rl-service-grid {
    gap: 24px;
  }
  .rl-support-packet {
    padding: 12px 0 0;
    border-top: 1px solid #333333;
    border-left: 0;
  }
  .rl-support-summary {
    min-height: 44px;
    margin-bottom: 0;
  }
  .rl-support-packet[open] .rl-support-summary {
    margin-bottom: 13px;
  }
  .rl-trace-actions {
    flex-direction: column;
    align-items: stretch !important;
  }
  .rl-trace-actions .rl-btn {
    width: 100%;
  }
  .rl-answer-section {
    padding: 42px 0 28px;
  }
  .rl-quick-answer {
    gap: 12px;
    padding: 22px;
  }
  .rl-stage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .rl-stage {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #E5E7E5;
    border-radius: 0;
    background: transparent;
  }
  .rl-stage:last-child {
    border-bottom: 0;
  }
  .rl-stage h3 {
    font-size: 14px;
  }
  .rl-stage p {
    font-size: 13px;
  }
  .rl-board-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .rl-issue-group {
    margin-bottom: 6px !important;
    border-bottom: 1px solid #E5E7E5;
  }
  .rl-issue-summary {
    margin-bottom: 0;
    padding: 7px 0;
  }
  .rl-issue-group[open] .rl-issue-summary {
    margin-bottom: 12px;
  }
  .rl-issue-group[open] .rl-board-grid {
    padding-bottom: 16px;
  }
  .rl-how-check {
    flex-direction: column;
    gap: 5px !important;
  }
}

/* segmented toggle transition */
.rl-tab { transition: all 120ms cubic-bezier(0.2, 0, 0, 1); }

/* loading spinner (Lightning quote/invoice in flight) */
@keyframes rl-spin { to { transform: rotate(360deg); } }
.rl-spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rl-spin 0.7s linear infinite;
  vertical-align: middle;
}
.rl-spinner-dark { border-color: rgba(10, 10, 10, 0.2); border-top-color: #0A0A0A; }

/* Compact direct-founder contact strip on /btc. It lives in normal page flow so
 * it never covers the invoice QR or the fixed Intercom launcher on small screens. */
.rl-direct-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  background: #FAFAFA;
  color: #525252;
  font-size: 12.5px;
  line-height: 1.45;
}
.rl-direct-contact strong { color: #0A0A0A; }
.rl-direct-contact-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rl-direct-contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0A0A0A;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 520px) {
  .rl-direct-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .rl-btc-support-fab {
    display: none !important;
  }
}

/* Wordmark-as-back-link (/btc only). Same metrics as the plain header brand so
   the header does not shift; the link affordance is hover-only. */
.rl-brand-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
  color: #0a0a0a;
  border-radius: 8px;
}
.rl-brand-link:hover span { text-decoration: underline; }
.rl-brand-link:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }

/* "More payment options" — the /btc page's way back to the other chains. */
.rl-more-pay { padding: 14px 0 4px; }
/* Collapsed by default — the card only opens on click, so it stops competing with
   the rail above it (2026-08-10 owner call). The <a> stays in the DOM either way,
   so crawlers still follow it. */
.rl-more-pay summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rl-more-pay summary::-webkit-details-marker { display: none; }
.rl-more-pay details[open] summary { margin-bottom: 4px; }
.rl-more-pay a {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  text-decoration: none;
  color: #0a0a0a;
}
.rl-more-pay a:hover { border-color: #0a0a0a; }
.rl-more-pay-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rl-more-pay-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.rl-more-pay-sub { font-size: 12.5px; line-height: 1.5; color: #525252; }
.rl-more-pay-marks { flex-shrink: 0; }
.rl-more-pay-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: #2563eb;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .rl-more-pay-cta { margin-left: 0; }
}

/* "How to get the payment link" heading. The example URL used to live inside the
   bold heading, which wrapped to two dense lines; it is a quiet code line now. */
.rl-howto-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin: 0 0 4px;
}
.rl-howto-eg {
  font-size: 12px;
  line-height: 1.5;
  color: #8a8a8a;
  margin: 0;
  overflow-wrap: anywhere;
}
.rl-howto-eg code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #525252;
  background: #f5f5f5;
  border-radius: 5px;
  padding: 1px 5px;
}
