/* rp-landing-module.v6.css -- the landing's "Refer a friend | Become a partner" module,
 * second design (patches/referral_partner, 2026-11-16, PREVIEW; script
 * rp-landing-module.v6.js; v3 = the script eases the lean, v5 = the ground, v6 = one ground for
 * pricing, the boxes and the FAQ, and the two buttons; there is no v4 sheet).
 *
 * The operator on the first: "a bit stiff. I like the general idea, but the two need to
 * be clearly distinguishable ... give the design one more creative impulse." So the two
 * are no longer one box twice:
 *   REFER A FRIEND  a WHITE card (in both schemes), its picture two tiles that meet:
 *                   the alpha and the friend who joins it.
 *   BECOME A PARTNER a BLACK card (in both schemes) in a metal rim, its picture the
 *                   figure itself, "25%", in metal, counted up as the card arrives.
 * They come in from the two sides, lean a little toward the pointer and carry a light
 * that follows it. Ground: see THE GROUND below (v5). Type: the
 * landing's (Geist). Buttons: its liquid metal pill ([data-slot="liquid-button"] +
 * .glass-deep, liquid-metal.v6.js). The cards state their own colours, so they are the
 * same in the light and the dark scheme; only the ground changes.
 * Served max-age=604800: never edit in place, ship a new name. */
/* THE GROUND (v6): ONE FAMILY FROM THE PLANS TO THE FAQ.
   His reviews. v5: "In white mode and dark mode the bottom module is a style mismatch.
   It just looks out of place with its background." v6: "the colors from the pricing,
   then the two modules and then the bottom look a bit mismatching ... so that for
   example the plans also use the white background light ... In dark mode the transition
   from the two referral modules and the FAQ is great though."
   Until v5 the light run was grey slab (pricing) / paper (boxes) / grey slab (FAQ), and
   in the dark theme the pricing was a lighter slab that ended in a line above the boxes.
   Now, while this module stands (html.rpm-on):
   - #pricing and #faq let go of their own ground (bg-warm-soft) and stand on the page's,
     as the hero, the dashboard picture and the features do; the pricing's pastel aurora
     and its white bloom are not drawn. The plan cards themselves are untouched.
   - LIGHT: one still field of the brand's blue and metal (#051650, #12307F, a cool
     silver) runs behind the plans AND the boxes and thins out into the FAQ. It is this
     section's own box reaching up over the pricing (--rpm-up, its height, from the
     script). No shader is loaded in the light theme.
   - DARK: boxes -> FAQ exactly as in v5 (the shader's glow runs on under the FAQ's
     hairline and fades). Upward the same now happens: the glow passes under the top
     hairline and fades out behind the lower part of the plans (--rpm-top).
   The FAQ is paper too (not the one grey step before the footer): a lone grey slab
   between two white sections is the alternation this round removes, and in the dark
   theme the FAQ already is the page's colour, which is the transition he calls great.
   The section is no stacking context: its ground lies at z-index -1 in the page's own,
   under everything the neighbours draw (#pricing is its own context and paints above). */
html.rpm-on #pricing,html.rpm-on #faq{background-color:transparent}
html.rpm-on #pricing > .aurora,html.rpm-on #pricing > .pointer-events-none.absolute{display:none}
/* in the dark theme body carries a copy of the page colour that would paint over z-index -1 */
html[data-theme="dark"].rpm-on body{background-color:transparent}
.rpm{position:relative;overflow-x:clip;border-top:1px solid hsl(var(--line));--rpm-bleed:clamp(120px,15vw,230px);
  --rpm-top:max(140px,min(calc(var(--rpm-up,0px) * .55),520px))}
.rpm-ground{display:none;position:absolute;left:0;right:0;top:calc(var(--rpm-top) * -1);bottom:calc(var(--rpm-bleed) * -1);z-index:-1;pointer-events:none;overflow:hidden;contain:strict}
/* --rpm-k (the script): 2 on a dense screen, the canvas drawn at CSS-pixel size and stretched */
.rpm-mesh{position:absolute;left:0;top:0;width:calc(100% / var(--rpm-k,1));height:calc(100% / var(--rpm-k,1));
  transform:scale(var(--rpm-k,1));transform-origin:0 0;display:block;opacity:0;transition:opacity 1.2s ease}
.rpm-mesh.is-on{opacity:1}
.rpm-veil{position:absolute;inset:0}
html[data-theme="dark"] .rpm-ground{display:block}
html[data-theme="dark"] .rpm-veil{
  background:
    linear-gradient(to bottom,hsl(var(--bg)) 0,hsl(var(--bg) / .95) calc(var(--rpm-top) * .16),hsl(var(--bg) / .8) calc(var(--rpm-top) * .38),
      hsl(var(--bg) / .56) calc(var(--rpm-top) * .6),hsl(var(--bg) / .3) calc(var(--rpm-top) * .82),hsl(var(--bg) / .1) calc(var(--rpm-top) * 1.04),transparent calc(var(--rpm-top) * 1.25)),
    linear-gradient(to top,hsl(var(--bg)) 0,hsl(var(--bg) / .93) calc(var(--rpm-bleed) * .3),hsl(var(--bg) / .74) calc(var(--rpm-bleed) * .62),
      hsl(var(--bg) / .46) calc(var(--rpm-bleed) * .95),hsl(var(--bg) / .2) calc(var(--rpm-bleed) * 1.3),hsl(var(--bg) / .06) calc(var(--rpm-bleed) * 1.6),transparent calc(var(--rpm-bleed) * 1.9)),
    radial-gradient(66% 40% at 50% 56%,rgba(18,48,127,.17),rgba(5,22,80,.13) 52%,rgba(5,22,80,0) 84%),
    rgba(12,12,13,.62)}
/* LIGHT: the field. Positions are fractions of pricing + boxes + the reach into the FAQ. */
.rpm-halo{position:absolute;left:0;right:0;top:calc(var(--rpm-up,0px) * -1);bottom:-150px;z-index:-1;pointer-events:none;
  background:
    radial-gradient(50% 27% at 30% 31%,rgba(5,22,80,.19),rgba(5,22,80,.08) 52%,rgba(5,22,80,0) 80%),
    radial-gradient(48% 27% at 71% 40%,rgba(18,48,127,.16),rgba(18,48,127,.06) 52%,rgba(18,48,127,0) 80%),
    radial-gradient(40% 16% at 52% 14%,rgba(150,160,182,.30),rgba(150,160,182,0) 76%),
    radial-gradient(50% 24% at 29% 73%,rgba(5,22,80,.21),rgba(5,22,80,.09) 52%,rgba(5,22,80,0) 80%),
    radial-gradient(50% 24% at 72% 70%,rgba(18,48,127,.18),rgba(18,48,127,.07) 52%,rgba(18,48,127,0) 80%),
    radial-gradient(44% 15% at 50% 55%,rgba(150,160,182,.34),rgba(150,160,182,0) 76%)}
html[data-theme="dark"] .rpm-halo{display:none}
@media (max-width:820px){.rpm-halo{background:
    radial-gradient(120% 12% at 30% 12%,rgba(5,22,80,.17),rgba(5,22,80,0) 78%),
    radial-gradient(120% 12% at 72% 34%,rgba(18,48,127,.15),rgba(18,48,127,0) 78%),
    radial-gradient(120% 12% at 28% 56%,rgba(5,22,80,.17),rgba(5,22,80,0) 78%),
    radial-gradient(120% 11% at 68% 78%,rgba(18,48,127,.18),rgba(18,48,127,0) 78%),
    radial-gradient(100% 8% at 50% 90%,rgba(150,160,182,.30),rgba(150,160,182,0) 76%)}}
.rpm-in{max-width:1180px;margin:0 auto;padding:80px 24px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;perspective:1400px}
@media (min-width:640px){.rpm-in{padding-left:40px;padding-right:40px}}
@media (min-width:1024px){.rpm-in{padding-top:112px;padding-bottom:112px}}
@media (max-width:820px){.rpm-in{grid-template-columns:1fr}}

/* ── the card ──────────────────────────────────────────────────────── */
.rpm-box{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;min-height:clamp(380px,36vw,470px);
  padding:clamp(26px,3.2vw,44px);border-radius:30px;box-sizing:border-box;overflow:hidden;
  --mx:50%;--my:0%;--rx:0deg;--ry:0deg;
  transform:rotateX(var(--rx)) rotateY(var(--ry));transform-style:preserve-3d;
  transition:transform .5s cubic-bezier(.22,1,.36,1),box-shadow .5s cubic-bezier(.22,1,.36,1)}
/* v3 (with rp-landing-module.v4.js): the script eases the lean itself, frame by frame, so
   the sheet must not ease the same values a second time (is-lean: a card the script drives) */
.rpm-box.is-lean{transition:box-shadow .5s cubic-bezier(.22,1,.36,1)}
/* the light that follows the pointer */
.rpm-box::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .4s ease;
  background:radial-gradient(460px circle at var(--mx) var(--my),var(--rpm-glow),transparent 62%)}
.rpm-box.is-live::after{opacity:1}

/* REFER A FRIEND: white */
.rpm-a{--rpm-ink:#141413;--rpm-grey:rgba(20,20,19,.5);--rpm-glow:rgba(11,31,92,.10);color:var(--rpm-ink);
  border:1px solid rgba(255,255,255,.95);
  background:linear-gradient(165deg,rgba(255,255,255,.97),rgba(246,247,250,.86));
  -webkit-backdrop-filter:blur(40px) saturate(1.15);backdrop-filter:blur(40px) saturate(1.15);
  box-shadow:0 34px 70px -34px rgba(22,21,19,.5),inset 0 1px rgba(255,255,255,1)}
html[data-theme="dark"] .rpm-a{box-shadow:0 34px 70px -30px rgba(0,0,0,.9),inset 0 1px rgba(255,255,255,1)}
/* BECOME A PARTNER: black, in a metal rim */
.rpm-b{--rpm-ink:#F4F4F2;--rpm-grey:rgba(244,244,242,.5);--rpm-glow:rgba(255,255,255,.10);color:var(--rpm-ink);
  border:1px solid transparent;
  background:linear-gradient(165deg,#1b1c21,#08080a 70%);
  box-shadow:0 34px 70px -30px rgba(0,0,0,.85),inset 0 1px rgba(255,255,255,.10)}
@property --rpm-turn{syntax:'<angle>';inherits:false;initial-value:150deg}
.rpm-b::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;padding:1px;pointer-events:none;
  background:conic-gradient(from var(--rpm-turn),rgba(255,255,255,.75),rgba(255,255,255,.08) 12%,#12307F 26%,rgba(255,255,255,.1) 40%,rgba(255,255,255,.7) 52%,rgba(255,255,255,.06) 66%,#0B1F5C 80%,rgba(255,255,255,.12) 92%,rgba(255,255,255,.75));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
  transition:--rpm-turn 1.4s cubic-bezier(.22,1,.36,1)}
.rpm-b.is-live::before{--rpm-turn:330deg}

/* ── the pictures ──────────────────────────────────────────────────── */
.rpm-art{position:relative;height:clamp(84px,9vw,112px);width:100%;display:flex;align-items:flex-end}
/* two tiles that meet */
.rpm-duo{position:relative;display:flex;align-items:center;height:clamp(64px,6.6vw,84px)}
.rpm-t{position:relative;flex:0 0 auto;width:clamp(64px,6.6vw,84px);height:clamp(64px,6.6vw,84px);border-radius:27%;display:grid;place-items:center;overflow:hidden}
.rpm-t1{z-index:1;background:linear-gradient(140deg,#fff,#eef0f4);border:1px solid rgba(22,21,19,.10);
  box-shadow:0 16px 28px -14px rgba(22,21,19,.45),inset 0 2px 2px #fff,inset 0 -2px 4px rgba(22,21,19,.07)}
.rpm-t1 img{width:62%;height:62%;object-fit:contain;display:block}
.rpm-t2{margin-left:-14px;color:#F4F4F2;background:linear-gradient(140deg,#2b2d33,#0b0b0d);border:1px solid rgba(255,255,255,.14);
  box-shadow:0 16px 28px -14px rgba(22,21,19,.6),inset 0 1px 1px rgba(255,255,255,.2);transform:rotate(6deg)}
.rpm-t2 svg{width:50%;height:50%}
/* the figure, in metal */
.rpm-fig{display:block;font-size:clamp(84px,9.4vw,124px);font-weight:700;line-height:.86;letter-spacing:-.065em;font-variant-numeric:tabular-nums;
  background:linear-gradient(100deg,#fff 0%,#aab2c4 22%,#fff 40%,#5f6c8f 58%,#fff 76%,#c3c9d6 100%);background-size:220% 100%;background-position:0% 0;
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  animation:rpm-shine 7s ease-in-out infinite alternate}
.rpm-fig small{font-size:.5em;letter-spacing:-.04em;margin-left:.04em}
@keyframes rpm-shine{from{background-position:0% 0}to{background-position:100% 0}}

/* ── the words ─────────────────────────────────────────────────────── */
.rpm-h{margin:clamp(22px,2.6vw,34px) 0 0;font-size:clamp(30px,3.5vw,46px);font-weight:600;line-height:1.04;letter-spacing:-.035em;color:var(--rpm-ink)}
.rpm-p{margin:14px 0 0;max-width:27ch;font-size:clamp(18px,1.75vw,23px);font-weight:600;line-height:1.22;letter-spacing:-.025em;color:var(--rpm-grey);text-wrap:balance}
.rpm-p b{font-weight:inherit;color:var(--rpm-ink)}
.rpm-go{margin-top:auto;align-self:stretch;padding-top:clamp(26px,3vw,40px)}

/* THE BUTTON (v6). "I am thinking that we choose different buttons than the liquid metals
   again for the two components": the Origin Button he pasted (a React/motion component),
   built here in plain CSS and the module's script. 48px high, 12px corners, a hairline,
   a medium 15px label. A circle (.rpm-ob-fill) grows from the exact point where the
   pointer came in until it covers the button, and the label flips colour; it shrinks to
   the point where the pointer leaves. The script only places the circle (left, top,
   size) and sets is-on; the motion is this sheet's. "Make it full length on the bottom":
   it spans the card's inner width at its bottom edge.
   Colours belong to the CARD, not the theme (one card is white and one black in both). */
.rpm-a{--ob-bg:#fff;--ob-ink:#141413;--ob-line:rgba(20,20,19,.16);--ob-fill:#141413;--ob-ink-on:#fff;--ob-ring:#141413}
.rpm-b{--ob-bg:#171716;--ob-ink:#F4F4F2;--ob-line:rgba(255,255,255,.16);--ob-fill:#F4F4F2;--ob-ink-on:#141413;--ob-ring:#F4F4F2}
.rpm-ob{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;padding:0 20px;
  border-radius:12px;border:1px solid var(--ob-line);background:var(--ob-bg);color:var(--ob-ink);
  font-size:15px;font-weight:500;letter-spacing:-.02em;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:color .3s ease,transform .18s cubic-bezier(.22,1,.36,1)}
.rpm-ob:hover,.rpm-ob:visited{color:var(--ob-ink)}
.rpm-ob.is-on,.rpm-ob.is-on:hover,.rpm-ob.is-on:visited{color:var(--ob-ink-on)}
.rpm-ob:active{transform:scale(.985)}
.rpm-ob:focus{outline:none}
.rpm-ob:focus-visible{outline:2px solid var(--ob-ring);outline-offset:3px}
.rpm-ob-l{position:relative;z-index:1}
/* until the script has placed it: a circle about the middle that covers the button */
.rpm-ob-fill{position:absolute;z-index:0;left:-10%;top:50%;margin-top:-60%;width:120%;aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:var(--ob-fill);transform:scale(0);transition:transform .5s cubic-bezier(.16,1,.3,1);will-change:transform}
.rpm-ob.is-on .rpm-ob-fill{transform:scale(1)}
@media (prefers-reduced-motion:reduce){.rpm-ob,.rpm-ob-fill{transition:none}}

/* ── the arrival: from the two sides, once; then the friend's tile joins ── */
.rpm.is-wait .rpm-box{opacity:0}
.rpm.is-wait .rpm-a{transform:translateX(-56px) rotateY(10deg)}
.rpm.is-wait .rpm-b{transform:translateX(56px) rotateY(-10deg)}
.rpm.is-wait .rpm-t2{opacity:0;transform:translateX(34px) rotate(18deg)}
.rpm.is-in .rpm-box{animation:rpm-come 1s cubic-bezier(.2,.7,.2,1) both}
.rpm.is-in .rpm-b{animation-name:rpm-come-b;animation-delay:.12s}
.rpm.is-in .rpm-t2{animation:rpm-join .8s cubic-bezier(.2,.9,.3,1.25) .75s both}
@keyframes rpm-come{from{opacity:0;transform:translateX(-56px) rotateY(10deg)}to{opacity:1;transform:none}}
@keyframes rpm-come-b{from{opacity:0;transform:translateX(56px) rotateY(-10deg)}to{opacity:1;transform:none}}
@keyframes rpm-join{from{opacity:0;transform:translateX(34px) rotate(18deg)}to{opacity:1;transform:rotate(6deg)}}
@media (max-width:820px){
  .rpm.is-wait .rpm-a,.rpm.is-wait .rpm-b{transform:translateY(28px)}
  @keyframes rpm-come{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
  @keyframes rpm-come-b{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
}
@media (prefers-reduced-motion:reduce){.rpm-fig{animation:none}.rpm-box{transform:none !important}}
