/* referral page styles (referral, EN + ES) */
/* page inline */
.phx-static{position:absolute;top:0;left:0;width:100%;height:780px;object-fit:cover;object-position:center;z-index:0;pointer-events:none;opacity:.55;
    -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 45%,transparent 100%);
    mask-image:linear-gradient(180deg,#000 0%,#000 45%,transparent 100%);}
  #bgVideoWrap{display:none;}
  main{position:relative;z-index:1;}

  .ref-hero,.ref-commissions,.ref-how,.ref-examples,.ref-rules,.ref-form-section{
    margin-left:auto;margin-right:auto;
    padding-left:0;padding-right:0;
    border:none;
  }

  .ref-hero__label{font-weight:800;letter-spacing:.16em;}
  .ref-hero__title{text-transform:uppercase;letter-spacing:-.015em;-webkit-text-fill-color:#16161b;}
  .btn{display:inline-block;text-decoration:none;}
  .ref-hero__cta .btn-primary{background:#16161b;color:#f2f3f5;border:none;padding:15px 30px;font-weight:700;}
  .ref-hero__cta .btn-secondary{border:1px solid rgba(0,0,0,.38) !important;color:#16161b !important;font-weight:700;}
  .ref-commission-cell{background:rgba(255,255,255,.62);border:1px solid rgba(0,0,0,.1);border-radius:28px;padding:34px 32px;}
  .ref-commission-cell__pct{text-transform:uppercase;font-weight:900;letter-spacing:-.015em;}
  .ref-commission-cell__desc{font-size:.95rem;}
  .ref-step{background:rgba(255,255,255,.62);border:1px solid rgba(0,0,0,.1);border-radius:28px;padding:26px;margin:0;}
  .ref-step__num{font-weight:900;}
  .ref-step__title{font-weight:800;font-size:1rem;}
  .ref-examples__title{font-family:var(--font-display) !important;text-transform:uppercase;letter-spacing:-.012em;}
  .ref-examples > div{background:rgba(255,255,255,.62);border:1px solid rgba(0,0,0,.1);border-radius:28px;padding:12px 26px;}
  .ref-table th{color:rgba(0,0,0,.55);border-bottom:1px solid rgba(0,0,0,.16);}
  .ref-table td{border-bottom:1px solid rgba(0,0,0,.08);}
  .ref-table td:first-child{color:#16161b;font-weight:600;}
  .ref-table td.earn{color:#16161b;font-weight:800;}

  .ref-rule-list li{display:block;position:relative;padding-left:18px;}
  .ref-rule-list li::before{background:#16161b;position:absolute;left:0;top:9px;margin-top:0;}
  .ref-rule-list li span{color:rgba(0,0,0,.72);}
  .ref-rule-list li strong{color:#16161b;font-weight:700;}
  .ref-form-section__title{text-transform:uppercase;letter-spacing:-.012em;}
  .ref-form{background:#101014;border:1px solid rgba(0,0,0,.2);border-radius:32px;padding:34px 30px;box-shadow:0 32px 90px rgba(0,0,0,.25);}
  .ref-form__input,.ref-form__select{border-radius:999px;}
  .ref-form__input::placeholder{color:rgba(255,255,255,.45);}
  #refSubmit{background:#f2f3f5;color:#16161b;border:none;cursor:pointer;padding:15px 30px;font-weight:700;}
  .ref-form__success{background:rgba(255,255,255,.62);border:1px solid rgba(0,0,0,.12);border-radius:28px;color:rgba(0,0,0,.75);}
  .ref-form__success strong{color:#16161b;}

/* base font unify */
html{font-size:100%;}
body{line-height:normal;}

/* commission and section spacing (was inline in the page) */
/* LIVE-METRICS ALIGN: geometry leaned to production jinyerbalance.com/referral,
   translated to the serif shell (16px base, 1412px shell). Theme/register untouched.
   Measured live vs serif at 1440x900 + 390x745 — see audit notes. */

/* 1. Hero -> commissions gap: live = 80px desktop / 48 mobile; serif had 38+8 = 46 (cramped).
      clamp bottom + the existing 8px .ref-commissions padding-top = live's 80 at desktop. */


/* 2. Hero subhead measure: production caps at 540px; the serif 640px was drift. */


/* 3. Mobile poster title: live mobile H1 = 3rem (54px on its 18px base) -> 48px on the 16px base;
      the serif 38px floor read undersized next to live. Desktop clamp result unchanged. */

/* 4. Section rhythm: live separates sections by ~200px (100+100 desktop, 64+64 mobile);
      the serif single 72px gap was cramped. Symmetric clamp(64,7vw,88) = live's proportions
      scaled to the 16px base and matching the serif index .section rhythm (88px). */

 /* keep the serif pre-footer air */

/* 5. Alignment fix: the card skin (.ref-examples > div) also caught the section HEADER,
      boxing it and pushing its label to x=41 while every other section label sits on the
      shell edge (x=14, matching live's one shared left line). Header back to bare. */
.ref-examples > .ref-examples__header{background:none;border:none;border-radius:0;padding:0;box-shadow:none;}

/* 6. Commission cards: live cell padding is 56px; the serif 34/32 crowded the 72px figure.
      56 x (16/18 base) ~ 50 -> 48px. */
.ref-commission-cell{padding:48px;}
@media(max-width:400px){.ref-commission-cell{padding:36px 24px;}}

/* 7. Secondary-copy absolute sizes: live's rem copy computes 15.3-16.6px; on the 16px base the
      same rems fell to 13.6-14.7px (below the site's own 16px body standard). Pinned to live. */
.ref-step__desc{font-size:15px;}
.ref-rule-list li span{font-size:15px;}
.ref-table td{font-size:16px;}
.ref-form-section__sub{font-size:16px;}
.ref-form__input,.ref-form__select{font-size:16px;}
.ref-form__note{font-size:14px;}

/* 8. Uppercase labels: live computes ~12.2-13px; serif fell to 10.9-11.5px. */
.ref-hero__label,.ref-commission-cell__label,.ref-form__label{font-size:13px;}
.ref-how__label,.ref-examples__label,.ref-rules__label,.ref-form-section__label,.ref-table th{font-size:12px;}

/* 9. Mobile H2 floor: live mobile section titles = 2rem (36px on 18px base) -> 32px on the
      16px base; the serif 28px floor was under-scaled. Desktop result unchanged (52px cap). */
