/* ==========================================================================
   Affiliate programme page — PVAPins
   --------------------------------------------------------------------------
   Everything is scoped under .rp-page (set on <body>). The host page loads
   Bootstrap 4.6 AND bootstrap-material-design 4.1, both of which restyle form
   controls aggressively, so the inputs and buttons here carry deliberate extra
   specificity. Do not "simplify" those selectors — material-design wins if
   you do.

   Two more host-page landmines this file works around:

     - includes-web/head.php ships a global `.card { display:inline-block;
       border:1px solid #ddd; margin-right:3px }` and a global `.accordion`
       block. Nothing here uses those class names; every component is `rp-`
       prefixed so the shared panel CSS cannot reach into it.

     - Bootstrap 4 ships no [hidden] rule, so el.hidden loses to any author
       `display`. The FAQ therefore toggles a class, never the attribute.

   Data treatment: the rate, both minimums, and every calculator figure are set
   in a tabular mono face. This is a page of money numbers, and columns of
   proportional digits do not line up.

   Colour and contrast: --rp-brand (#0b8a7b) measures 4.25:1 on white, which is
   BELOW WCAG AA for normal text. It is used for borders, washes and decorative
   fills only. Text and solid fills carrying white text use --rp-brand-deep
   (9.6:1) or --rp-brand-solid (5.2:1). Do not swap one for the other.
   ========================================================================== */

.rp-page {
  /* Brand teal, carried over from the SMS-verification and API-docs rebuilds
     so the estate reads as one system. */
  --rp-brand: #0b8a7b;          /* decorative only — 4.25:1 on white */
  --rp-brand-2: #0aa18e;        /* gradient partner / hover lift */
  --rp-brand-deep: #064e46;     /* body-safe brand text — 9.6:1 on white */
  --rp-brand-solid: #097a6d;    /* solid fill under white text — 5.2:1 */
  --rp-brand-wash: rgba(11, 138, 123, 0.08);
  --rp-brand-wash-2: rgba(11, 138, 123, 0.14);
  --rp-brand-line: rgba(11, 138, 123, 0.26);

  /* Functional only: a rule the reader will otherwise trip over (the open
     support ticket that blocks a payout). Never used for emphasis. */
  --rp-warn: #a4453a;
  --rp-warn-wash: rgba(164, 69, 58, 0.08);
  --rp-warn-line: rgba(164, 69, 58, 0.28);

  --rp-ink: #071a1c;
  --rp-ink-2: #2c4a4a;
  --rp-muted: #5a7373;          /* 5.1:1 on white, 4.7:1 on --rp-paper */
  --rp-line: #d9e6e3;
  --rp-line-soft: #e8f1ef;
  --rp-paper: #f4f8f7;
  --rp-card: #ffffff;
  --rp-ink-invert: #f2fbf9;

  --rp-r-sm: 10px;
  --rp-r: 14px;
  --rp-r-lg: 20px;
  --rp-r-pill: 999px;
  --rp-max: 1140px;

  --rp-e1: 0 1px 2px rgba(7, 26, 28, 0.05);
  --rp-e2: 0 4px 14px rgba(7, 26, 28, 0.07);
  --rp-e3: 0 18px 46px rgba(7, 26, 28, 0.11);

  --rp-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rp-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Section rhythm. One variable so sections cannot drift apart. */
  --rp-gap: clamp(44px, 6vw, 84px);

  background: var(--rp-paper);
  -webkit-font-smoothing: antialiased;
}

/* Typographic reset is scoped to .rp-main, NOT to .rp-page, because .rp-page
   is <body> and the shared navbar and footer live inside it. Restyling those
   from a single page's stylesheet is how the estate's headers drift apart. */
.rp-page .rp-main {
  font-family: var(--rp-font);
  color: var(--rp-ink);
  line-height: 1.65;
  font-size: 16px;
  /* The page must never scroll sideways at 360px. Long unbroken strings (the
     example referral link, an e-mail address) are the usual culprits. */
  overflow-x: hidden;
}

.rp-page .rp-main a {
  color: var(--rp-brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rp-page .rp-main a:hover {
  color: var(--rp-brand-solid);
}

/* Every interactive thing gets the same visible ring. */
.rp-page .rp-main :is(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--rp-brand-solid);
  outline-offset: 3px;
  border-radius: var(--rp-r-sm);
}

.rp-page .rp-main :is(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) {
  margin: 0;
}

/* Used instead of the `hidden` attribute: Bootstrap 4 ships no [hidden] rule,
   so el.hidden silently loses to any author display value. */
.rp-page .rp-is-hidden {
  display: none !important;
}

.rp-skip {
  position: absolute;
  left: -9999px;
  z-index: 200;
}

.rp-page .rp-skip:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  padding: 12px 18px;
  background: var(--rp-ink);
  color: var(--rp-ink-invert);
  border-radius: var(--rp-r-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--rp-e3);
}

.rp-shell {
  max-width: var(--rp-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

/* --------------------------------------------------------------------------
   Data type — the page's utility voice
   -------------------------------------------------------------------------- */

.rp-figure,
.rp-stat-v,
.rp-calc-out-v,
.rp-payout-min,
.rp-code,
.rp-fact-v {
  font-family: var(--rp-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

.rp-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-brand-deep);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.rp-page .rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--rp-r-pill);
  font-family: var(--rp-font);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rp-page .rp-btn--primary,
.rp-page a.rp-btn--primary {
  background: var(--rp-brand-solid);
  color: #ffffff;
  box-shadow: var(--rp-e2);
}

.rp-page .rp-btn--primary:hover,
.rp-page a.rp-btn--primary:hover {
  background: var(--rp-brand-deep);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--rp-e3);
}

.rp-page .rp-btn--ghost,
.rp-page a.rp-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.rp-page .rp-btn--ghost:hover,
.rp-page a.rp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  color: #ffffff;
}

.rp-page .rp-btn--quiet,
.rp-page a.rp-btn--quiet {
  background: var(--rp-card);
  border-color: var(--rp-line);
  color: var(--rp-brand-deep);
}

.rp-page .rp-btn--quiet:hover,
.rp-page a.rp-btn--quiet:hover {
  border-color: var(--rp-brand);
  background: var(--rp-brand-wash);
  color: var(--rp-brand-deep);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.rp-hero {
  /* Both stops carry white text, so the LIGHTEST stop sets the contrast
     floor: #097a6d = 5.2:1. */
  background: linear-gradient(135deg, var(--rp-brand-deep) 0%, var(--rp-brand-solid) 100%);
  color: #ffffff;
  padding-block: clamp(52px, 8vw, 92px);
}

.rp-hero-inner {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.rp-hero h1 {
  font-size: clamp(30px, 5.2vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.rp-hero .rp-eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.rp-hero-lede {
  font-size: clamp(16px, 2.1vw, 19px);
  color: rgba(255, 255, 255, 0.93);
  max-width: 62ch;
}

.rp-hero-lede strong {
  color: #ffffff;
  font-weight: 700;
}

.rp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.rp-hero-fine {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}

.rp-page .rp-hero a:not(.rp-btn) {
  color: #ffffff;
}

/* Headline figures, sitting on the hero seam */
.rp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 1px;
  background: var(--rp-line);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-lg);
  overflow: hidden;
  box-shadow: var(--rp-e2);
  margin-top: calc(-1 * clamp(26px, 4vw, 42px));
  position: relative;
  z-index: 1;
}

.rp-stat {
  background: var(--rp-card);
  padding: 22px 20px;
  min-width: 0;
}

.rp-stat-k {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rp-muted);
}

.rp-stat-v {
  display: block;
  margin-top: 6px;
  font-size: clamp(21px, 3.2vw, 27px);
  font-weight: 700;
  color: var(--rp-brand-deep);
  line-height: 1.15;
}

.rp-stat-n {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--rp-muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.rp-section {
  padding-block: var(--rp-gap);
}

.rp-section--alt {
  background: var(--rp-card);
  border-block: 1px solid var(--rp-line-soft);
}

.rp-sec-head {
  max-width: 68ch;
  margin-bottom: clamp(24px, 3.5vw, 40px);
  display: grid;
  gap: 10px;
}

.rp-sec-head h2 {
  font-size: clamp(23px, 3.4vw, 33px);
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--rp-ink);
}

.rp-sec-head p {
  font-size: clamp(15px, 1.9vw, 17px);
  color: var(--rp-ink-2);
}

.rp-grid {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

/* The track minimum is min(Npx, 100%), never a bare Npx. A bare minmax(300px,
   1fr) is wider than the content box below ~330px viewport, so the track — and
   with it the page — overflows sideways. Measured: .rp-terms at 320px pushed
   its cards to 324px inside a 288px column. */
.rp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.rp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(248px, 100%), 1fr)); }
.rp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }

/* Grid children must be allowed to shrink or a long token forces a wider
   track and the whole page scrolls sideways on a 360px screen. */
.rp-grid > * { min-width: 0; }

.rp-card {
  background: var(--rp-card);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  padding: clamp(20px, 2.6vw, 26px);
  box-shadow: var(--rp-e1);
  min-width: 0;
}

.rp-section--alt .rp-card {
  background: var(--rp-paper);
}

.rp-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rp-ink);
  margin-bottom: 8px;
}

.rp-card p {
  font-size: 14.5px;
  color: var(--rp-ink-2);
}

.rp-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--rp-r-sm);
  background: var(--rp-brand-wash);
  color: var(--rp-brand-deep);
  border: 1px solid var(--rp-brand-line);
  margin-bottom: 14px;
  font-size: 17px;
}

/* Steps — numbered, so the order is readable without reading */
.rp-step {
  position: relative;
  padding-top: 6px;
}

.rp-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rp-brand-solid);
  color: #ffffff;
  font-family: var(--rp-mono);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 13px;
}

/* --------------------------------------------------------------------------
   Mechanics — the facts table
   -------------------------------------------------------------------------- */

.rp-facts {
  display: grid;
  gap: 1px;
  background: var(--rp-line);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  overflow: hidden;
}

.rp-fact {
  background: var(--rp-card);
  padding: 20px clamp(18px, 2.4vw, 26px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

@media (min-width: 780px) {
  .rp-fact {
    grid-template-columns: minmax(190px, 0.9fr) minmax(0, 2.1fr);
    gap: 24px;
    align-items: baseline;
  }
}

.rp-fact dt {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--rp-ink);
  margin: 0;
}

.rp-fact dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--rp-ink-2);
}

.rp-fact-v {
  font-weight: 700;
  color: var(--rp-brand-deep);
}

/* Callouts */
.rp-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--rp-r);
  background: var(--rp-brand-wash);
  border: 1px solid var(--rp-brand-line);
  font-size: 14.5px;
  color: var(--rp-ink-2);
}

.rp-note i {
  color: var(--rp-brand-deep);
  font-size: 16px;
  line-height: 1.5;
  flex: none;
}

.rp-note--warn {
  background: var(--rp-warn-wash);
  border-color: var(--rp-warn-line);
}

.rp-note--warn i {
  color: var(--rp-warn);
}

.rp-note strong {
  color: var(--rp-ink);
}

/* --------------------------------------------------------------------------
   Calculator
   -------------------------------------------------------------------------- */

.rp-calc {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

@media (min-width: 860px) {
  .rp-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
}

.rp-calc-form {
  background: var(--rp-card);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  padding: clamp(20px, 2.8vw, 28px);
  box-shadow: var(--rp-e1);
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}

.rp-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

/* Both Bootstrap 4 and bootstrap-material-design restyle labels and inputs.
   The .rp-page prefix plus the element selector is what keeps these ours. */
.rp-page .rp-field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rp-ink);
  margin: 0;
  text-transform: none;
}

.rp-page .rp-field .rp-field-hint {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--rp-muted);
  letter-spacing: 0;
}

.rp-page .rp-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: var(--rp-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  line-height: 1.3;
  color: var(--rp-ink);
  background-color: var(--rp-card);
  background-image: none;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-sm);
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -moz-appearance: textfield;
}

.rp-page .rp-input:focus {
  border-color: var(--rp-brand);
  box-shadow: 0 0 0 3px var(--rp-brand-wash);
  outline: none;
  background-color: var(--rp-card);
}

.rp-page .rp-input::-webkit-outer-spin-button,
.rp-page .rp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rp-calc-out {
  background: linear-gradient(150deg, var(--rp-brand-deep) 0%, var(--rp-brand-solid) 100%);
  color: #ffffff;
  border-radius: var(--rp-r);
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  gap: 20px;
  align-content: center;
  box-shadow: var(--rp-e2);
  min-width: 0;
}

.rp-calc-out-row { min-width: 0; }

.rp-calc-out-k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.rp-calc-out-v {
  display: block;
  margin-top: 4px;
  font-size: clamp(28px, 5.4vw, 42px);
  font-weight: 750;
  line-height: 1.08;
  color: #ffffff;
  /* A clamped-ceiling figure is ten digits wide; let it wrap rather than
     push the layout. */
  overflow-wrap: anywhere;
}

.rp-calc-out-n {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.rp-calc-hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  margin: 0;
}

.rp-calc-disclaimer {
  margin-top: 16px;
  font-size: 13px;
  color: var(--rp-muted);
  max-width: 78ch;
}

/* --------------------------------------------------------------------------
   Payout routes
   -------------------------------------------------------------------------- */

.rp-payout {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.rp-payout > * { min-width: 0; }

.rp-payout-card {
  background: var(--rp-card);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--rp-e1);
  display: grid;
  gap: 14px;
  align-content: start;
}

.rp-payout-card--featured {
  border-color: var(--rp-brand-line);
  box-shadow: var(--rp-e2);
}

.rp-payout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.rp-payout-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--rp-ink);
}

.rp-payout-min {
  font-size: 15px;
  font-weight: 700;
  color: var(--rp-brand-deep);
  background: var(--rp-brand-wash);
  border: 1px solid var(--rp-brand-line);
  border-radius: var(--rp-r-pill);
  padding: 3px 12px;
  white-space: nowrap;
}

.rp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.rp-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--rp-ink-2);
}

.rp-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--rp-brand);
  font-size: 14px;
}

.rp-list--plain li { padding-left: 0; }

/* --------------------------------------------------------------------------
   Code sample (the referral link shape)
   -------------------------------------------------------------------------- */

.rp-code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  padding: 13px 16px;
  background: var(--rp-ink);
  color: #b9f0e4;
  border-radius: var(--rp-r-sm);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre;
}

.rp-code b {
  color: #ffd79a;
  font-weight: 700;
}

/* Inline code inside prose. Bootstrap's default `code` is pink on transparent
   (~3.6:1 here) and reads as an error state; this keeps it quiet and legible. */
.rp-page .rp-main code:not(.rp-code) {
  font-family: var(--rp-mono);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--rp-brand-wash-2);
  color: var(--rp-brand-deep);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Terms
   -------------------------------------------------------------------------- */

.rp-terms {
  display: grid;
  gap: clamp(16px, 2.2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* There are exactly four term cards. auto-fit lays them out 3 + 1 on a wide
   screen, which orphans the last one against two thirds of an empty row; a
   fixed 2x2 reads as a document section instead. */
@media (min-width: 900px) {
  .rp-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rp-terms > * { min-width: 0; }

.rp-terms h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--rp-ink);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rp-line);
}

/* --------------------------------------------------------------------------
   FAQ — progressive enhancement, never [hidden]
   --------------------------------------------------------------------------
   The panels are OPEN in the base stylesheet. With JS off every answer is
   readable, which is also what keeps the visible copy identical to the
   FAQPage JSON-LD. The script adds .rp-faq--js to the list, and only then do
   the closed panels collapse.
   -------------------------------------------------------------------------- */

.rp-faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.rp-faq-item {
  background: var(--rp-card);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  overflow: hidden;
}

.rp-page .rp-faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 17px clamp(16px, 2.2vw, 22px);
  background: var(--rp-card);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  text-transform: none;
  font-family: var(--rp-font);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.45;
  /* The old accordion put #000 on a #019688 header — 4.0:1, under AA. The
     header is now white and the text is near-black: 16.5:1. */
  color: var(--rp-ink);
  cursor: pointer;
  transition: background-color 0.16s ease;
  -webkit-appearance: none;
  appearance: none;
}

.rp-page .rp-faq-q:hover {
  background: var(--rp-brand-wash);
}

.rp-faq-q-t {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rp-faq-chev {
  flex: none;
  margin-top: 2px;
  color: var(--rp-brand-deep);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.rp-page .rp-faq-q[aria-expanded="true"] .rp-faq-chev {
  transform: rotate(180deg);
}

.rp-faq-a {
  padding: 0 clamp(16px, 2.2vw, 22px) 19px;
  font-size: 14.5px;
  color: var(--rp-ink-2);
  border-top: 1px solid var(--rp-line-soft);
  padding-top: 15px;
}

/* Collapsed state exists ONLY once the script has taken over. */
.rp-faq--js .rp-faq-a[data-rp-open="false"] {
  display: none;
}

/* --------------------------------------------------------------------------
   Support + closing band
   -------------------------------------------------------------------------- */

.rp-support {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.rp-support > * { min-width: 0; }

.rp-support-card {
  background: var(--rp-card);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  padding: 22px;
  box-shadow: var(--rp-e1);
  display: grid;
  gap: 6px;
  align-content: start;
}

.rp-support-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--rp-ink);
}

.rp-page .rp-support-card a {
  font-family: var(--rp-mono);
  font-size: 14.5px;
  color: var(--rp-brand-deep);
  overflow-wrap: anywhere;
}

.rp-support-card p {
  font-size: 13.5px;
  color: var(--rp-muted);
}

.rp-band {
  background: linear-gradient(135deg, var(--rp-brand-deep) 0%, var(--rp-brand-solid) 100%);
  color: #ffffff;
  border-radius: var(--rp-r-lg);
  padding: clamp(28px, 4.5vw, 48px);
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  box-shadow: var(--rp-e2);
}

.rp-band h2 {
  font-size: clamp(22px, 3.4vw, 31px);
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.rp-band p {
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255, 255, 255, 0.92);
  max-width: 58ch;
}

.rp-band-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}

.rp-page .rp-band a:not(.rp-btn) {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

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

  .rp-page .rp-btn:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  .rp-stats {
    margin-top: calc(-1 * 20px);
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  }

  .rp-stat {
    padding: 16px 14px;
  }

  .rp-hero-cta .rp-btn,
  .rp-band-cta .rp-btn {
    width: 100%;
  }
}

@media print {
  .rp-faq--js .rp-faq-a[data-rp-open="false"] {
    display: block;
  }
}
