/* ============================================================================
   refer.css — the Refer and earn page (/refer) and the private points page (/refer/points)
   (added 3 Nov 2026). Loaded after site.css, rf.css and waitlist.css.

   Sizes, colours and spacing are copied from design_reference/refer-design-2026-11-03/
   (Main.dc.html and Phone.dc.html for /refer; PointsA/PointsB/PointsPhone.dc.html for the points
   page), where they were inline styles. Desktop values first; the phone design's values below
   600 px. The top bar, Sakhi, the voice rings, the wash and grain, the footer and the share row
   are the site's own (rf.css + site.css), reused; the form and the success card are styled in
   waitlist.css, and this file only gives the /refer form the design's look.

   Every rule starts with ".rp" (the pages' <body> class) so that it beats the rate finder page's
   general rules (".rf2 a" and so on) without "!important".

   Tokens: ink #3D2B7A, action #6A55E8, lavender #C9BFFF (decoration, and text only on ink),
   page #F0EEF7, surface #FFFFFF, tint #F1EEFD, border #E7E4F3, body #2A2440, muted #5D5672.

   MOTION (/refer only; static/site/refer.js adds the classes): the hero plays once as on the
   homepage ("play" on #top); lower sections rise as they scroll into view ("in" / "wait"). With
   reduced motion rf.css switches every animation off under .rf, and refer.js adds nothing.
   ============================================================================ */

.rp-main, .rpp-main { width: 100%; display: flex; flex-direction: column; align-items: center; }
/* Where the logo, the two links and the button do not fit on one line, the links move to a line of
   their own under the logo (as on the Pricing page). */
.rp .rf-head { flex-wrap: wrap; row-gap: 0; }

/* ---------- /refer: the hero ---------- */
.rp .rp-hero { padding-bottom: 72px; }
.rp .vr-hero { --sk: clamp(116px, 11vw, 148px); }
.rp .rp-sakhi { width: clamp(116px, 11vw, 148px); }
.rp .rp-h1 {
  margin: 20px 0 0; max-width: 760px; font-size: 56px; line-height: 1.1; font-weight: 600;
  letter-spacing: -0.02em; color: #3D2B7A;
}
.rp .rp-lead { margin: 20px 0 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: #2A2440; }
.rp .rp-cta {
  margin-top: 32px; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; box-sizing: border-box; padding: 0 32px; border-radius: 12px;
  background: #6A55E8; color: #FFFFFF; font-size: 17px; font-weight: 500; text-decoration: none;
  transition: background-color .2s;
}
.rp .rp-cta:hover { background: #5745D1; color: #FFFFFF; }
.rp .rp-note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #5D5672; }

/* ---------- /refer: the sections ---------- */
.rp .rp-sec {
  width: 100%; box-sizing: border-box; padding: 8px 40px 64px;
  display: flex; flex-direction: column; align-items: center;
}
.rp .rp-h2 {
  margin: 0 0 32px; font-size: 34px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em;
  color: #3D2B7A; text-align: center;
}
/* How it works */
#how-it-works { scroll-margin-top: 16px; }
.rp .rp-steps { width: 100%; max-width: 1080px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.rp .rp-step {
  flex: 1 1 280px; box-sizing: border-box; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  background: #FFFFFF; border: 1px solid #E7E4F3; border-radius: 18px;
}
.rp .rp-ic {
  width: 52px; height: 52px; border-radius: 50%; background: #F1EEFD; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.rp .rp-ic-s { width: 44px; height: 44px; }
.rp .rp-step-n { font-size: 13px; font-weight: 500; color: #5D5672; }
.rp .rp-h3 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; color: #3D2B7A; }
.rp .rp-p { margin: 0; font-size: 16px; line-height: 1.55; color: #2A2440; }
.rp .rp-msg {
  width: 100%; max-width: 1080px; box-sizing: border-box; margin-top: 20px; padding: 22px 26px;
  display: flex; flex-direction: column; gap: 8px;
  background: #F1EEFD; border: 1px solid #E7E4F3; border-radius: 16px;
}
.rp .rp-msg-label { font-size: 13px; font-weight: 500; color: #5D5672; }
.rp .rp-msg-text { font-size: 16px; line-height: 1.55; color: #2A2440; }

/* What earns points */
.rp .rp-table {
  width: 100%; max-width: 760px; box-sizing: border-box; overflow: hidden;
  background: #FFFFFF; border: 1px solid #E7E4F3; border-radius: 18px;
}
.rp .rp-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 28px; border-bottom: 1px solid #E7E4F3;
}
.rp .rp-row-l { display: flex; align-items: center; gap: 14px; }
.rp .rp-row-t { font-size: 17px; line-height: 1.4; color: #2A2440; }
.rp .rp-row-v { font-size: 20px; font-weight: 600; color: #3D2B7A; white-space: nowrap; }
.rp .rp-row-ink { padding: 26px 28px; background: #3D2B7A; border-bottom: 0; }
.rp .rp-row-ink-l { display: flex; flex-direction: column; gap: 4px; }
.rp .rp-row-ink-big { font-size: 20px; font-weight: 600; color: #FFFFFF; }
.rp .rp-row-ink-sub { font-size: 15px; line-height: 1.45; color: #C9BFFF; }
.rp .rp-badge {
  padding: 6px 14px; border-radius: 6px; background: #FFFFFF; color: #3D2B7A;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
/* The small print */
.rp .rp-fine { width: 100%; max-width: 760px; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.rp .rp-fine-h { margin: 0; font-size: 15px; font-weight: 600; color: #3D2B7A; }
.rp .rp-fine-list {
  margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px;
  font-size: 15px; line-height: 1.55; color: #5D5672;
}
/* the link to Terms: the action colour on the page background (#5745D1, the site's darker action
   shade, so the text keeps 4.5:1 on the lavender wash), 44 px tall to tap */
.rp .rp-fine-list a { color: #5745D1; display: inline-block; min-height: 44px; line-height: 44px; margin: -12px 0; }
.rp .rp-fine-list a:hover { color: #3D2B7A; }

/* ---------- /refer: the form, with the design's look ---------- */
.rp .rp-form-sec { padding-bottom: 72px; scroll-margin-top: 16px; }
.rp .rp-form-sec .wl-form, .rp .rp-form-sec .wl-done {
  margin-top: 0; max-width: 640px; padding: 36px; gap: 20px; border-radius: 18px;
}
.rp .rp-form-sec .wl-done.wl-done-card { padding: 0; }
.rp .rp-form-sec .wl-grid { grid-template-columns: 1fr; gap: 20px; }
.rp .rp-form-sec .wl-label { font-size: 14px; font-weight: 500; color: #2A2440; }
.rp .rp-form-sec .fi { height: auto; min-height: 48px; border-color: #CFC9E6; border-radius: 10px; }
.rp .rp-form-sec .wl-consent { gap: 12px; min-height: 44px; font-size: 15px; line-height: 1.5; }
.rp .rp-form-sec .wl-consent input { width: 22px; height: 22px; margin: 2px 0 0; }
.rp .rp-form-sec .wl-btn { min-height: 52px; border-radius: 12px; font-size: 17px; font-weight: 500; }
.rp .rp-form-sec .wl-small { font-size: 14px; text-align: center; }
.rp .rp-form-sec .wl-small a { color: #6A55E8; display: inline-block; min-height: 44px; line-height: 44px; margin: -14px 0; }
.rp .rp-form-sec .wl-small a:hover { color: #3D2B7A; }
/* the share row, under the form */
.rp .rp-share { margin: 0 0 48px; }

/* the footer, with the homepage footer's top rule (as on the Pricing page) */
.rp .rp-foot .rf-foot-row { border-top: 1px solid #E7E4F3; padding-top: 20px; }

/* ---------- /refer: the motion ---------- */
@keyframes rpRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Sakhi, once over 6 s, as on the homepage: rests, raises her thumb (38 frames), holds, lowers it */
@keyframes rpSak { 0% { background-position: 0% 0; } 18.3% { background-position: 0% 0; animation-timing-function: steps(38, end); } 71.2% { background-position: 100% 0; } 91.7% { background-position: 100% 0; animation-timing-function: steps(19, end); } 100% { background-position: 0% 0; } }
.rp .play .sakhi { animation: rpSak 6s linear both; }
.rp .play .rp-up { animation: rpRise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.rp .rp-reveal.in .rp-rise { animation: rpRise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.rp .rp-reveal.wait .rp-rise { opacity: 0; }

/* ---------- /refer at phone width (Phone.dc.html, 390 px) ---------- */
@media (max-width: 600px) {
  .rp .rp-hero { padding-bottom: 48px; }
  .rp .vr-hero { --sk: 116px; }
  .rp .rp-sakhi { width: 116px; }
  .rp .rp-h1 { margin-top: 16px; font-size: 36px; line-height: 1.12; }
  .rp .rp-lead { margin-top: 16px; font-size: 17px; }
  .rp .rp-cta { margin-top: 26px; padding: 0 28px; }
  .rp .rp-note { margin-top: 12px; }
  .rp .rp-sec { padding: 0 16px 44px; align-items: stretch; }
  .rp .rp-h2 { margin-bottom: 20px; font-size: 28px; }
  .rp .rp-steps { flex-direction: column; gap: 14px; }
  .rp .rp-step { flex: none; padding: 22px; gap: 10px; border-radius: 16px; }
  .rp .rp-ic { width: 48px; height: 48px; }
  .rp .rp-ic-s { width: 40px; height: 40px; }
  .rp .rp-h3 { font-size: 20px; }
  .rp .rp-msg { padding: 18px 20px; gap: 6px; }
  .rp .rp-table { border-radius: 16px; }
  .rp .rp-row { flex-wrap: nowrap; padding: 18px; }
  .rp .rp-row-l { gap: 12px; }
  .rp .rp-row-t { font-size: 16px; }
  .rp .rp-row-v { font-size: 17px; }
  .rp .rp-row-ink { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 18px; }
  .rp .rp-fine { margin-top: 20px; gap: 8px; }
  .rp .rp-form-sec { padding-bottom: 48px; }
  .rp .rp-form-sec .wl-form { padding: 24px 20px; gap: 18px; border-radius: 16px; }
  .rp .rp-form-sec .wl-head-h { font-size: 26px; }
  .rp .rp-share { margin-bottom: 40px; }
}

/* ============================================================================
   THE PRIVATE POINTS PAGE (/refer/points)
   ============================================================================ */
.rpp .rpp-hero {
  position: relative; width: 100%; box-sizing: border-box; padding: 40px 24px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.rpp .rpp-sakhi { --sz: 72px; }
.rpp .rpp-h1 { margin: 20px 0 0; font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: #3D2B7A; }
.rpp .rpp-hello { margin: 10px 0 0; font-size: 18px; line-height: 1.5; color: #2A2440; }
.rpp .rpp-hello[hidden] { display: none; }
.rpp .rpp-body { width: 100%; max-width: 880px; box-sizing: border-box; padding: 0 24px 48px; }
.rpp .rpp-msg {
  margin: 0; padding: 24px 28px; background: #FFFFFF; border: 1px solid #E7E4F3; border-radius: 18px;
  font-size: 17px; line-height: 1.5; color: #2A2440; text-align: center;
}
.rpp .rpp-msg[hidden], .rpp .rpp-all[hidden], .rpp [hidden] { display: none !important; }
.rpp .rpp-all { display: flex; flex-direction: column; gap: 20px; }
.rpp .pp-card { box-sizing: border-box; background: #FFFFFF; border: 1px solid #E7E4F3; border-radius: 18px; }
.rpp p { margin: 0; }

/* Banner 1: Starter year earned (ink) */
.rpp .pp-earned {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 32px; background: #3D2B7A; border-radius: 18px;
}
.rpp .pp-earned-words { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }
.rpp .pp-earned-h { font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: #FFFFFF; }
.rpp .pp-earned-p { font-size: 16px; line-height: 1.5; color: #C9BFFF; }
.rpp .pp-earned-btn {
  display: inline-flex; align-items: center; min-height: 48px; box-sizing: border-box; padding: 0 26px;
  border-radius: 12px; background: #FFFFFF; color: #3D2B7A; font-size: 16px; font-weight: 600; text-decoration: none;
}
.rpp .pp-earned-btn:hover { background: #F1EEFD; color: #3D2B7A; }
.rpp .pp-earned-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Banner 2: Starter year claimed (tint) */
.rpp .pp-claimed {
  display: flex; align-items: flex-start; gap: 16px; padding: 24px 28px;
  background: #F1EEFD; border: 1px solid #E7E4F3; border-radius: 18px;
}
.rpp .pp-claimed-ic {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.rpp .pp-claimed-words { display: flex; flex-direction: column; gap: 4px; }
.rpp .pp-claimed-h { font-size: 20px; line-height: 1.3; font-weight: 600; color: #3D2B7A; }
.rpp .pp-claimed-p { font-size: 16px; line-height: 1.5; color: #2A2440; }

/* Available now */
.rpp .pp-avail { padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.rpp .pp-avail-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; }
.rpp .pp-avail-num { display: flex; flex-direction: column; gap: 2px; }
.rpp .pp-avail-label { font-size: 14px; font-weight: 500; color: #5D5672; }
.rpp .pp-avail-big { font-size: 56px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; color: #3D2B7A; }
.rpp .pp-toward { font-size: 16px; color: #2A2440; padding-bottom: 6px; }
.rpp .pp-toward-phone { display: none; padding: 0; }
.rpp .pp-bar { height: 12px; border-radius: 6px; background: #E7E4F3; overflow: hidden; }
.rpp .pp-bar-fill { width: 0; height: 100%; background: #6A55E8; border-radius: 6px; }
.rpp .pp-earliest { font-size: 15px; color: #5D5672; }

/* The two counts */
.rpp .pp-counts { display: flex; flex-wrap: wrap; gap: 20px; }
.rpp .pp-count { flex: 1 1 280px; padding: 22px 28px; display: flex; flex-direction: column; gap: 4px; }
.rpp .pp-count-n { font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: #3D2B7A; }
.rpp .pp-count-t { font-size: 15px; line-height: 1.45; color: #2A2440; }

/* The statement and the dated lines */
.rpp .pp-table { overflow: hidden; }
.rpp .pp-table-h { margin: 0; padding: 22px 28px 14px; font-size: 20px; line-height: 1.3; font-weight: 600; color: #3D2B7A; }
.rpp .pp-st-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 28px;
  border-top: 1px solid #E7E4F3; font-size: 16px; color: #2A2440;
}
.rpp .pp-st-v { font-weight: 500; }
.rpp .pp-st-total { padding: 16px 28px; background: #F1EEFD; font-weight: 600; color: #3D2B7A; }
.rpp .pp-history { margin: 0; padding: 0; list-style: none; }
.rpp .pp-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 4px 20px;
  padding: 14px 28px; border-top: 1px solid #E7E4F3; font-size: 16px; color: #2A2440;
}
.rpp .pp-line-words { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.rpp .pp-line-date { flex: 0 0 112px; font-size: 15px; color: #5D5672; }
.rpp .pp-line-text { flex: 1 1 240px; }
.rpp .pp-line-change { font-weight: 600; color: #3D2B7A; white-space: nowrap; }
.rpp .pp-line-claim { background: #F1EEFD; font-weight: 500; color: #3D2B7A; }
.rpp .pp-line-claim .pp-line-date { font-weight: 400; }
.rpp .pp-line-minus .pp-line-change { color: #5D5672; }

/* The share link */
.rpp .pp-share { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.rpp .pp-share-h { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; color: #3D2B7A; }
.rpp .pp-share-link { font-size: 16px; color: #2A2440; word-break: break-all; }
.rpp .pp-btns { margin-top: 0; }
.rpp .pp-btn-line { background: #FFFFFF; color: #6A55E8; border: 1.5px solid #6A55E8; padding: 0 24px; }
.rpp .pp-btn-fill { background: #6A55E8; color: #FFFFFF; padding: 0 24px; }
.rpp .pp-btn-line:hover { color: #5745D1; border-color: #5745D1; }
.rpp .pp-btn-fill:hover { background: #5745D1; color: #FFFFFF; }
.rpp .pp-share-note { font-size: 14px; color: #5D5672; }
.rpp .pp-copy-box { position: fixed; opacity: 0; }

/* ---------- the points page at phone width (PointsPhone.dc.html, 390 px) ---------- */
@media (max-width: 600px) {
  .rpp .rpp-hero { padding: 28px 16px 20px; }
  .rpp .rpp-sakhi { --sz: 64px; }
  .rpp .rpp-h1 { margin-top: 16px; font-size: 30px; }
  .rpp .rpp-hello { margin-top: 8px; font-size: 17px; }
  .rpp .rpp-body { padding: 0 16px 36px; }
  .rpp .rpp-all { gap: 14px; }
  .rpp .pp-card, .rpp .pp-claimed, .rpp .pp-earned { border-radius: 16px; }
  .rpp .pp-earned { padding: 20px 18px; gap: 16px; }
  .rpp .pp-earned-h { font-size: 20px; }
  .rpp .pp-claimed { padding: 18px; gap: 12px; }
  .rpp .pp-claimed-ic { width: 40px; height: 40px; }
  .rpp .pp-claimed-h { font-size: 18px; }
  .rpp .pp-claimed-p { font-size: 15px; }
  .rpp .pp-avail { padding: 20px 18px; gap: 12px; }
  .rpp .pp-avail-big { font-size: 48px; }
  .rpp .pp-avail-top .pp-toward { display: none; }
  .rpp .pp-toward-phone { display: block; }
  .rpp .pp-earliest { font-size: 14px; }
  .rpp .pp-counts { flex-wrap: nowrap; gap: 12px; }
  .rpp .pp-count { flex: 1 1 0; padding: 16px; }
  .rpp .pp-count-n { font-size: 30px; }
  .rpp .pp-count-t { font-size: 14px; line-height: 1.4; }
  .rpp .pp-table-h { padding: 18px 18px 12px; font-size: 18px; }
  .rpp .pp-st-row { padding: 13px 18px; }
  .rpp .pp-st-total { padding: 15px 18px; }
  .rpp .pp-line { align-items: flex-start; gap: 12px; padding: 13px 18px; }
  .rpp .pp-line-words { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .rpp .pp-line-date { flex: none; font-size: 14px; }
  .rpp .pp-line-text { flex: none; }
  .rpp .pp-share { padding: 20px 18px; }
  .rpp .pp-share-h { font-size: 18px; }
}
