/* Refer & Earn for HVAC: "the text that pays". The only saturated flat-colour hero: sunflower yellow (#ffd23f) with a
   faint halftone dot field, ink black (#111418) text, the headline's second line set as yellow-on-black marker type and
   a black primary button with yellow text. Hero layout: headline LEFT and the sub copy + buttons RIGHT on one band,
   then a full-width chain of three cards below (your text with the link -> they sign up -> you earn, month by month),
   so it reads differently from Leads (sunset photo), Ads (royal blue technician), SEO Audit (teal AI card right), Rank
   Tracker (violet dusk leaderboard), Review Manager (charcoal phone left), Smart Inbox (wine, centered window), Pipeline
   (evergreen board), Ignite (paper map), Scheduling (navy, three columns) and Training & Support (sunrise sky).
   Below the hero it is the same road-map system as hvac-support.css: phones stack the stops along a vertical road;
   from 1280px each stop is a full-width row and hvac-refer.js draws the winding road from measured positions. */

.rb-refer-page {
  --rb-bg: #faf8f2;
  background: var(--rb-bg);
  color: #111418;
}
.re-main { min-width: 0; }
.re-main > footer { width: auto; margin: 0; padding-inline: 24px; }
.re :is(a, button, summary):focus-visible { outline: 3px solid #111418; outline-offset: 3px; }

/* ---------------------------------------------------------------- shared */
.re {
  --ink: #111418;
  --ink2: #3b3f47;
  --muted: #666b75;
  --sun: #ffd23f;
  --sun-deep: #b98500;
  --green: #0e9f6e;
  --go: #111418;
  --asphalt: #464b55;
  --road-edge: #f8f9fc;
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(ellipse 40% 30% at 0% 30%, rgba(255, 210, 63, .12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 100% 64%, rgba(47, 124, 246, .06), transparent 70%),
    linear-gradient(180deg, #f7f5ef 0%, #fbfaf6 40%, #f6f4ee 72%, #f1efe8 100%);
}
.re *, .re *::before, .re *::after { box-sizing: border-box; }
:where(.re) :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
:where(.re) :where(ul, ol) { list-style: none; }
.re img { display: block; max-width: none; }
.re svg { display: block; overflow: visible; }
.re h1, .re h2, .re h3, .re-pin b, .re-brand span, .re-earn b, .re-bigcard b {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.re h1 em, .re h2 em { font-family: inherit; font-style: normal; letter-spacing: inherit; }
.re-i { width: 22px; height: 22px; flex: 0 0 auto; }
.re-cap { color: var(--muted); font-size: 12px; }
.re-stack { display: grid; }
.re-stack > * { grid-area: 1 / 1; }

.re-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #111418;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 10px 24px rgba(17, 20, 24, .28);
  color: var(--sun);
  font: 700 16px/1.1 "DM Sans", sans-serif;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.re-btn:hover { color: var(--sun); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 14px 30px rgba(17, 20, 24, .36); }
.re-btn .re-i { width: 18px; height: 18px; }
.re-btn--ghost { border-color: rgba(17, 20, 24, .45); background: transparent; box-shadow: none; color: var(--ink); }
.re-btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .45); box-shadow: none; color: var(--ink); }
.re-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.re-note { font-family: "Caveat", cursive; font-weight: 700; font-size: 30px; line-height: .95; color: var(--ink); }
.re-note u { text-decoration-color: var(--sun-deep); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.re-checks { display: flex; flex-direction: column; gap: 9px; }
.re-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.re-checks svg { width: 20px; height: 20px; flex: 0 0 auto; }
.re-ok { color: var(--go); }

/* Dark cards (house style): ink navy with a yellow hairline for this page. */
.re-dark {
  border: 1px solid rgba(255, 210, 63, .2);
  border-radius: 16px;
  background: linear-gradient(160deg, #1d2129 0%, #15181e 55%, #0f1115 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 4px rgba(13, 15, 19, .18), 0 16px 30px -8px rgba(13, 15, 19, .4), 0 36px 64px -20px rgba(13, 15, 19, .5);
  color: #f1f2f5;
}
/* White cards: fine border + layered shadow. */
.re-card {
  border: 1px solid rgba(17, 20, 24, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(17, 20, 24, .04), 0 16px 32px -10px rgba(17, 20, 24, .16);
}
.re-dark, .re-card { transition: transform .2s ease, box-shadow .2s ease; }
.re-dark:hover, .re-card:hover { transform: translateY(-2px); }
.re-av { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; background: #111418; color: var(--sun); font: 700 14px/1 "Space Grotesk", sans-serif; }
.re-av--b { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }

/* ---------------------------------------------------------------- hero */
.re-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 44px;
  background: var(--sun);
  color: var(--ink);
}
.re-hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 20, 24, .13) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
  pointer-events: none;
}
.re-hero__in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "copy" "flow";
  gap: 24px;
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}
.re-hero__head { grid-area: head; display: grid; gap: 14px; align-content: start; }
.re-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.re-brand svg { width: 32px; height: 32px; }
.re-brand span { font-size: 26px; line-height: 1; letter-spacing: -0.02em; }
.re-brand small { flex-basis: 100%; color: var(--ink2); font-size: 14px; font-weight: 700; }
.re h1 { margin: 0; color: var(--ink); font-size: clamp(32px, 8vw, 48px); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.re h1 em { display: inline; padding: 0 .16em; border-radius: 6px; background: #111418; color: var(--sun); line-height: 1.32; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.re-hero__copy { grid-area: copy; display: grid; gap: 18px; align-content: start; }
.re-hero__sub { color: #23262c; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.re-signals { display: grid; gap: 9px; }
.re-signals li { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; }
.re-signals .re-ok { width: 22px; height: 22px; }

/* The chain: your text -> they sign up -> you earn */
.re-flow { grid-area: flow; display: grid; gap: 8px; min-width: 0; }
.re-flow__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: stretch; }
.re-fc { position: relative; display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 20, 24, .08), 0 20px 40px -18px rgba(17, 20, 24, .45); }
.re-fc__top { display: flex; align-items: center; gap: 10px; }
.re-fc__top b { display: block; font-size: 15px; }
.re-fc__top small { display: block; color: var(--muted); font-size: 12.5px; }
.re-bub { justify-self: end; display: grid; gap: 8px; max-width: 94%; padding: 11px 13px; border-radius: 16px 16px 5px 16px; background: #2f7cf6; color: #fff; font-size: 14.5px; line-height: 1.4; }
.re-bub__link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, .18); font-weight: 700; font-size: 13.5px; }
.re-bub__link svg { width: 15px; height: 15px; }
.re-fc__meta { justify-self: end; color: var(--muted); font-size: 11.5px; }
.re-fc__kicker { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.re-fc__biz { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.re-fc__ok { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: 14.5px; font-weight: 700; }
.re-fc__ok i { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; padding: 3px; border-radius: 50%; background: var(--green); color: #fff; }
.re-fc__ok svg { width: 100%; height: 100%; }
.re-fc__plan { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(17, 20, 24, .08); color: var(--ink2); font-size: 14px; }
.re-fc__plan b { color: var(--ink); font-size: 18px; }
.re-fc--earn { background: #111418; color: #fff; box-shadow: 0 0 0 1px rgba(255, 210, 63, .35), 0 24px 44px -16px rgba(17, 20, 24, .6); }
.re-fc--earn .re-fc__kicker { color: #c9ccd3; }
.re-earn { display: flex; align-items: baseline; gap: 8px; }
.re-earn b { color: var(--sun); font-size: 44px; line-height: 1; }
.re-earn span { color: #d7d9de; font-size: 15px; font-weight: 600; }
.re-earn__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.re-earn__months li { height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .12); transition: background .25s ease; }
.re-earn__months li.is-on, .re-flow__row:not(.is-playing) .re-earn__months li { background: var(--sun); }
.re-earn__total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #c9ccd3; font-size: 13.5px; font-weight: 600; }
.re-earn__total b { color: #fff; font: 700 18px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.re-wire { position: relative; justify-self: center; width: 4px; height: 34px; background: repeating-linear-gradient(180deg, #111418 0 6px, transparent 6px 11px); }
.re-wire i { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #111418; box-shadow: 0 0 0 3px var(--sun); opacity: 0; }
.re-flow__cap { color: rgba(17, 20, 24, .7); font-size: 12px; }

/* Demo states (JS steps data-state; the HTML ships the final state 3). Cards keep their space, only opacity moves. */
.re-flow__row [data-re-f] { transition: opacity .45s ease, transform .45s cubic-bezier(.22, .8, .24, 1); }
.re-flow__row[data-state="0"] [data-re-f="1"] .re-bub,
.re-flow__row:is([data-state="0"], [data-state="1"]) :is([data-re-f="2"], [data-re-f="w2"]),
.re-flow__row:is([data-state="0"], [data-state="1"], [data-state="2"]) [data-re-f="3"] { opacity: .22; transform: translateY(8px); }
.re-flow__row[data-state="0"] [data-re-f="w1"] { opacity: .3; }
.re-flow__row[data-state="1"] [data-re-f="w1"] i, .re-flow__row[data-state="2"] [data-re-f="w2"] i { animation: re-down 1.1s ease-in-out forwards; }
@keyframes re-down { 0% { opacity: 1; top: 0; } 90% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 12px); } }
@keyframes re-right { 0% { opacity: 1; left: 0; } 90% { opacity: 1; } 100% { opacity: 0; left: calc(100% - 6px); } }

/* ---------------------------------------------------------------- road + steps (phones first) */
.re-course { position: relative; }
.re .re-road, .re .re-drive { display: none; }
.re-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; max-width: 780px; margin: 0 auto; padding: 34px 16px 34px 76px; }
.re-step::before, .re-finish::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 22px; background: var(--asphalt); box-shadow: 0 0 0 2.5px var(--road-edge), 0 0 0 3.5px #d3d8e2; }
.re-step::after, .re-finish::after { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; border-left: 2px dashed #fff; }
.re-step > * { min-width: 0; }
.re-pin { position: absolute; z-index: 1; left: 0; top: 20px; width: 62px; height: 78px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)); }
.re-pin svg { width: 100%; height: 100%; color: var(--pin); }
.re-pin b { position: absolute; left: 0; right: 0; top: 8px; color: #fff; font-size: 36px; text-align: center; }
.re-step--1 .re-pin b { color: var(--sun); }
@keyframes re-pin-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.re-step.is-in .re-pin, .re:not(.re-motion) .re-pin { animation: re-pin-bob 2.6s ease-in-out infinite; }
.re-step:nth-of-type(even) .re-pin { animation-delay: -1.3s; }
.re h2 { font-size: clamp(26px, 6.4vw, 32px); line-height: 1.08; }
.re-intro { display: grid; gap: 12px; align-content: start; }
.re-aside { display: grid; gap: 14px; justify-items: start; }
.re-sub { color: var(--ink2); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.re-visual { display: grid; gap: 12px; min-width: 0; container-type: inline-size; }

/* Stop 1: your link */
.re-link { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 640px; padding: 20px; }
.re-link__label { color: #c9ccd3; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.re-link__field { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.re-link__field > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; }
.re-link__field em { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 9px; background: var(--sun); color: #111418; font-size: 14px; font-style: normal; font-weight: 800; white-space: nowrap; transition: opacity .3s ease; }
.re-link__field .re-link__done { background: var(--green); color: #fff; }
.re-link__done svg { width: 15px; height: 15px; }
.re-link[data-state="copied"] .re-link__copy, .re-link:not([data-state="copied"]) .re-link__done { opacity: 0; }
.re-link__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.re-qr { display: grid; justify-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: #fff; }
.re-qr svg { width: 74px; height: 74px; }
.re-qr small { color: #111418; font-size: 11.5px; font-weight: 700; }
.re-share { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.re-share li { padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: #e3e5ea; font-size: 14px; font-weight: 700; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.re-share li.is-on { border-color: var(--sun); background: var(--sun); color: #111418; }

/* Stop 2: they sign up */
.re-join { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 700px; padding: 18px; }
.re-join__screen { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: #f4f5f8; }
.re-join__url { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.re-join__url i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.re-join__title { margin-top: 2px; font: 700 18px/1.2 "Space Grotesk", sans-serif; }
.re-join__in { display: grid; padding: 8px 11px; border: 1px solid #dde1e8; border-radius: 9px; background: #fff; font-size: 14.5px; }
.re-join__in small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.re-join__foot { margin-top: 2px; }
.re-join__btn, .re-join__made { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 10px; font-size: 15px; transition: opacity .35s ease, transform .2s ease; }
.re-join__btn { background: #2f7cf6; color: #fff; }
.re-join__made { background: #ecfdf5; color: #065f46; box-shadow: 0 0 0 1px rgba(14, 159, 110, .25) inset; }
.re-join__made svg { width: 18px; height: 18px; }
.re-join[data-state="done"] .re-join__btn, .re-join:not([data-state="done"]) .re-join__made { opacity: 0; }
.re-join[data-state="press"] .re-join__btn { transform: scale(.97); }
.re-join__arrow { justify-self: center; color: var(--ink); transform: rotate(90deg); }
.re-join__dash { display: grid; gap: 10px; align-content: center; padding: 16px; border-radius: 12px; background: #111418; color: #fff; }
.re-join__dhead { color: #c9ccd3; font-size: 12.5px; font-weight: 700; }
.re-join__tile { position: relative; display: flex; align-items: baseline; gap: 12px; }
.re-join__tile small { color: #e3e5ea; font-size: 15px; font-weight: 700; }
.re-join__tile b { font: 700 52px/1 "Space Grotesk", sans-serif; color: var(--sun); }
.re-join__n { transition: opacity .35s ease, transform .35s cubic-bezier(.22, .8, .24, 1); }
.re-join__tile em { padding: 3px 9px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-style: normal; font-weight: 800; transition: opacity .35s ease; }
.re-join[data-state="done"] .re-join__n--old, .re-join:not([data-state="done"]) .re-join__n--new { opacity: 0; transform: translateY(-10px); }
.re-join:not([data-state="done"]) .re-join__tile em { opacity: 0; }

/* Stop 3: 20% every month */
.re-months { display: grid; gap: 14px; max-width: 720px; padding: 20px; }
.re-months__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.re-months__head b { display: block; font-size: 17px; }
.re-months__head small { display: block; color: #c9ccd3; font-size: 13px; }
.re-months__head em { padding: 5px 12px; border-radius: 999px; background: var(--sun); color: #111418; font: 700 16px/1.1 "Space Grotesk", sans-serif; font-style: normal; }
.re-months__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.re-months__grid li { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .03); transition: background .3s ease, border-color .3s ease; }
.re-months__grid small { color: #9ea3ad; font-size: 11.5px; font-weight: 700; }
.re-months__grid b { color: #6f7480; font-size: 15px; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.re-months__grid li.is-on { border-color: rgba(255, 210, 63, .45); background: rgba(255, 210, 63, .12); }
.re-months__grid li.is-on b { color: var(--sun); }
.re-months__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); color: #d7d9de; font-size: 15px; font-weight: 600; }
.re-months__total b { color: #fff; font: 700 30px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }

/* Stop 4: cash out */
.re-pay { display: grid; gap: 14px; max-width: 680px; padding: 18px; }
.re-pay__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.re-pay__head b { font-size: 17px; }
.re-pay__head span { color: var(--muted); font-size: 13px; font-weight: 600; }
.re-pay__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px; border-radius: 12px; background: #f4f5f8; }
.re-pay__who b { display: block; font-size: 15px; }
.re-pay__who small { display: block; color: var(--muted); font-size: 12.5px; }
.re-pay__amt { font: 700 20px/1 "Space Grotesk", sans-serif; }
.re-pay__status { grid-column: 2 / -1; justify-self: start; }
.re-st { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-style: normal; font-weight: 800; transition: opacity .3s ease; }
.re-st--pending { background: #fef3c7; color: #92400e; }
.re-st--ok { background: #dcfce7; color: #166534; }
.re-st--paid { background: #111418; color: var(--sun); }
.re-pay:not([data-state="pending"]) .re-st--pending, .re-pay:not([data-state="approved"]) .re-st--ok, .re-pay:not([data-state="paid"]) .re-st--paid { opacity: 0; }
.re-pay__ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.re-pay__way { display: grid; gap: 2px; padding: 11px 12px; border: 1.5px solid #dde1e8; border-radius: 12px; font-size: 14px; font-weight: 600; transition: border-color .3s ease, background .3s ease; }
.re-pay__way small { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.re-pay[data-state="paid"] .re-pay__way--bank { border-color: #111418; background: #fffbea; }
.re-pay__sent { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 11px; background: #ecfdf5; box-shadow: 0 0 0 1px rgba(14, 159, 110, .25) inset; transition: opacity .35s ease; }
.re-pay__sent > svg { width: 22px; height: 22px; flex: 0 0 auto; padding: 3px; border-radius: 50%; background: var(--green); color: #fff; }
.re-pay__sent b { display: block; font-size: 15px; }
.re-pay__sent small { display: block; color: var(--ink2); font-size: 13.5px; }
.re-pay:not([data-state="paid"]) .re-pay__sent { opacity: 0; }

/* Finish band */
.re-finish { position: relative; display: grid; gap: 16px; max-width: 780px; margin: 0 auto; padding: 30px 16px 44px 76px; }
.re-finish > * { position: relative; z-index: 2; }
.re-bigcard { position: relative; display: grid; gap: 2px; width: 190px; padding: 0 0 14px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 16px 30px rgba(17, 20, 24, .16), 0 0 0 1px rgba(17, 20, 24, .06); text-align: center; transform: rotate(-3deg); }
.re-bigcard small { display: block; padding: 7px 0; background: #111418; color: var(--sun); font-size: 13px; font-weight: 800; }
.re-bigcard b { margin-top: 8px; font-size: 40px; line-height: 1; }
.re-bigcard span { color: var(--ink2); font-size: 13.5px; font-weight: 600; }
.re-bigcard em { justify-self: center; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sun); color: #111418; font-size: 12px; font-style: normal; font-weight: 800; }
.re-finish__copy { display: grid; gap: 10px; }
.re-finish__copy h2 { font-size: clamp(24px, 5.6vw, 30px); }
.re-finish__copy p { color: var(--ink2); font-size: 15.5px; line-height: 1.45; }
.re-note--out { justify-self: end; transform: rotate(-5deg); }

/* ---------------------------------------------------------------- sample reviews (same design as the other road pages) */
.re-reviews { position: relative; z-index: 3; display: grid; gap: 26px; padding: 48px 16px 56px; background: linear-gradient(180deg, #f1efe8 0%, #fbfaf6 100%); scroll-margin-top: 186px; }
.re-reviews__head { display: grid; justify-items: center; gap: 10px; max-width: 760px; margin: 0 auto; text-align: center; }
.re-reviews__label { padding: 4px 12px; border-radius: 999px; background: rgba(17, 20, 24, .06); color: var(--muted); font-size: 13px; font-weight: 600; }
.re-reviews__grid { display: grid; gap: 18px; width: 100%; max-width: 1280px; margin: 0 auto; }
.re-review { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 22px; border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%); box-shadow: 0 16px 34px rgba(17, 20, 24, .1), 0 2px 6px rgba(17, 20, 24, .05), 0 0 0 1px rgba(17, 20, 24, .06); }
.re-review::before { content: ""; position: absolute; inset: 0 22px auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--av); opacity: .85; }
.re-review::after { content: "\201C"; position: absolute; top: 6px; right: 18px; color: color-mix(in srgb, var(--av) 16%, transparent); font: 700 84px/1 Georgia, serif; pointer-events: none; }
.re-review blockquote { flex: 1 1 auto; }
.re-review blockquote p { color: var(--ink); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.re-review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(17, 20, 24, .08); }
.re-review__av { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: var(--av); color: #fff; font: 700 15px/1 "Space Grotesk", sans-serif; }
.re-review figcaption b { display: block; color: var(--ink); font-size: 16px; }
.re-review figcaption small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }

/* ---------------------------------------------------------------- FAQ */
.re-close { position: relative; z-index: 3; padding: 44px 16px 52px; background: linear-gradient(180deg, #181b21 0%, #0f1115 100%); color: #fff; }
.re-faq { display: grid; gap: 10px; max-width: 980px; margin: 0 auto; }
.re-faq h2 { margin-bottom: 6px; color: #fff; font-size: clamp(24px, 5.4vw, 30px); }
.re-faq details { border: 1px solid rgba(255, 210, 63, .18); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.re-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; color: #fff; font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.re-faq summary::-webkit-details-marker { display: none; }
.re-faq .re-plus { flex: 0 0 auto; width: 18px; height: 18px; color: var(--sun); transition: transform .25s ease; }
.re-faq details[open] .re-plus { transform: rotate(45deg); }
.re-faq details p { padding: 0 16px 15px; color: #d7d9de; font-size: 16px; line-height: 1.55; }

/* ---------------------------------------------------------------- get started */
.re-get { position: relative; z-index: 3; display: grid; padding: 52px 16px 56px; background: #fbfaf6; scroll-margin-top: 186px; }
.re-plan { display: grid; gap: 20px; width: 100%; max-width: 980px; margin: 0 auto; padding: 24px; border-radius: 18px; background: var(--sun); box-shadow: 0 24px 48px -16px rgba(17, 20, 24, .3); color: var(--ink); }
.re .re-plan h2 { font-size: clamp(24px, 5.4vw, 30px); line-height: 1.12; }
.re-plan__copy { display: grid; gap: 14px; }
.re-plan__list { display: grid; gap: 10px; }
.re-plan__list li { display: flex; align-items: flex-start; gap: 10px; color: #23262c; font-size: 15.5px; line-height: 1.45; }
.re-plan__list .re-ok { width: 20px; height: 20px; margin-top: 2px; }

/* ---------------------------------------------------------------- motion */
.re-motion .re-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22, .8, .24, 1), transform .6s cubic-bezier(.22, .8, .24, 1); }
.re-motion .re-reveal.is-in { opacity: 1; transform: none; }
.re-motion .re-pin { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), filter .4s ease; }
.re-motion .re-step:not(.is-in) .re-pin { transform: translateY(-28px) scale(.8); filter: grayscale(1) opacity(.55); }

/* ---------------------------------------------------------------- container layouts for the widgets */
@container (min-width: 560px) {
  .re-join { grid-template-columns: minmax(0, 1.1fr) auto minmax(0, .9fr); align-items: center; }
  .re-join__arrow { transform: none; }
  .re-months__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (min-width: 700px) {
  .re-months__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@container (max-width: 420px) {
  .re-link__row { grid-template-columns: minmax(0, 1fr); }
  .re-qr { justify-self: start; }
}

/* ---------------------------------------------------------------- tablets */
@media (min-width: 700px) {
  .re-hero { padding-top: 40px; }
  .re-finish { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
  .re-note--out { grid-column: 1 / -1; }
  .re-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .re-plan { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 30px; }
  .re-plan .re-actions { flex-direction: column; }
  .re-close { padding: 52px clamp(24px, 5vw, 64px) 60px; }
}
@media (min-width: 1000px) {
  /* Headline LEFT, copy RIGHT, then the chain across the full width. */
  .re-hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "head copy" "flow flow"; column-gap: clamp(32px, 4vw, 72px); row-gap: 30px; align-items: start; }
  .re h1 { font-size: clamp(36px, 3.4vw, 58px); }
  .re-hero__copy { padding-top: 44px; }
  .re-flow__row { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; }
  .re-wire { width: 100%; height: 4px; background: repeating-linear-gradient(90deg, #111418 0 6px, transparent 6px 11px); }
  .re-wire i { left: 0; top: 50%; margin: -6px 0 0; }
  .re-flow__row[data-state="1"] [data-re-f="w1"] i, .re-flow__row[data-state="2"] [data-re-f="w2"] i { animation-name: re-right; }
}
@media (min-width: 1100px) { .re-reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* ---------------------------------------------------------------- desktop rows */
@media (min-width: 1280px) {
  .re-hero { padding: 30px 0 48px; }
  .re-hero__in { width: auto; margin: 0 clamp(28px, 4vw, 96px); }
  .re-brand span { font-size: 28px; }
  .re-hero__sub { font-size: clamp(16.5px, 1.1vw, 19px); }

  .re-course { --edge: 92px; max-width: 1680px; margin: 0 auto; padding: 36px var(--edge) 0; }
  .re .re-road { position: absolute; left: 0; top: 0; z-index: 1; display: block; pointer-events: none; }
  .re-road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .re-road__edge { stroke: var(--road-edge); stroke-width: 36; filter: drop-shadow(0 2px 3px rgba(17, 20, 24, .25)); }
  .re-road__top { stroke: var(--asphalt); stroke-width: 30; }
  .re-road__line { stroke: #fff; stroke-width: 2; stroke-dasharray: 12 10; stroke-linecap: butt !important; }
  .re .re-drive { position: absolute; z-index: 4; left: 0; top: 0; display: block; width: 140px; visibility: hidden; filter: drop-shadow(0 7px 5px rgba(17, 20, 24, .28)); pointer-events: none; will-change: transform; }
  .re .re-drive.is-placed { visibility: visible; }
  .re-drive img { width: 100%; height: auto; }
  .re-drive__right, .re-drive.is-right .re-drive__left { display: none !important; }
  .re-drive.is-right .re-drive__right { display: block !important; }

  .re-step {
    z-index: 2;
    grid-template-columns: minmax(330px, .72fr) minmax(0, 1.45fr);
    grid-template-areas: "intro visual";
    align-items: start;
    column-gap: clamp(28px, 3vw, 56px);
    max-width: none;
    margin: 0;
    padding: 58px 36px 58px 104px;
  }
  .re-intro { grid-area: intro; padding-top: 14px; }
  .re-visual { grid-area: visual; }
  .re-step::before, .re-step::after, .re-finish::before, .re-finish::after { content: none; }
  .re-pin { left: 17px; top: 28px; width: 80px; height: 100px; }
  .re-pin b { top: 12px; font-size: 42px; }
  .re h2 { font-size: clamp(27px, 1.95vw, 34px); line-height: 1.06; }

  .re-finish {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "card copy note";
    align-items: center;
    column-gap: clamp(24px, 3vw, 48px);
    max-width: none;
    margin: 10px 0 0 104px;
    padding: 30px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 36px rgba(17, 20, 24, .1), 0 0 0 1px rgba(17, 20, 24, .05);
  }
  .re-bigcard { grid-area: card; }
  .re-finish__copy { grid-area: copy; }
  .re-finish__copy h2 { font-size: clamp(24px, 1.7vw, 30px); }
  .re-note--out { grid-column: auto; grid-area: note; font-size: 34px; }
  .re-course::after { content: ""; display: block; height: 96px; }

  .re-reviews, .re-get { gap: 30px; padding: 64px clamp(40px, 5vw, 96px) 72px; }
  .re-close { padding: 60px clamp(40px, 5vw, 96px) 68px; }
}

@media (min-width: 1280px) and (max-width: 1799px) {
  /* With the side panel open the course is ~1150px wide: visuals get the full row under a two-column intro. */
  .re-step { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "visual"; row-gap: 26px; }
  .re-step .re-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .re-step .re-intro > :is(h2, .re-sub) { grid-column: 1; }
  .re-step .re-intro > .re-aside { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .re-finish { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "card copy" "card note"; row-gap: 8px; }
  .re-note--out { justify-self: end; }
  .re-hero { padding: 24px 0 40px; }
  .re h1 { font-size: clamp(34px, 2.9vw, 48px); }
  .re-hero__in { row-gap: 24px; }
  .re-hero__copy { gap: 15px; padding-top: 38px; }
  .re-hero__sub { font-size: 16.5px; }
}

@media (max-width: 1180px) { .re-step, .re-reviews, .re-get { scroll-margin-top: 236px; } }
@media (min-width: 1181px) { .re-step { scroll-margin-top: 186px; } }
@media (max-width: 850px) { .re-step, .re-reviews, .re-get { scroll-margin-top: 218px; } }

@media (prefers-reduced-motion: reduce) {
  .re-btn, .re-faq .re-plus, .re-dark, .re-card, .re-flow__row [data-re-f], .re-earn__months li, .re-link__field em, .re-share li, .re-join__btn, .re-join__made, .re-join__n, .re-join__tile em, .re-months__grid li, .re-months__grid b, .re-st, .re-pay__way, .re-pay__sent { transition: none !important; }
  .re-pin, .re-wire i { animation: none !important; }
  .re-motion .re-reveal, .re-motion .re-pin { opacity: 1 !important; transform: none !important; transition: none !important; }
  .re-motion .re-pin { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)) !important; }
}
