/* referral-light page styles (referral, EN + ES) */
/* light theme test */
:root{--bg:#8c8d93;--bg-2:#7f8086;--ink:#0b0b0e;--muted:#26262c;--line:rgba(0,0,0,.24);--panel:rgba(0,0,0,.06);--panel-strong:rgba(0,0,0,.1);--black:#0b0b0e;--white:#ffffff;
    --font-display:"Archivo", system-ui, sans-serif;
    --font-ui:"Archivo", system-ui, sans-serif;}
  h1,h2,h3,.hero h1{font-family:var(--font-display) !important;}

  .hero h1{text-transform:uppercase;font-size:clamp(40px,6.6vw,92px);line-height:.92;letter-spacing:-.02em;font-weight:900;}

  @media (min-width:901px) and (max-height:760px){
    .hero h1{font-size:min(6.6vw, 10.4vh);}
    .hero-cta{margin-top:20px !important;}
  }html,body{background:#ebecee;}
  body{color:rgba(18,18,22,.84);}

  #bgVideoWrap{background:transparent;opacity:1;mix-blend-mode:normal;filter:none;overflow:hidden;}
  #bgVideoWrap::after{content:none;}

  .hero-scrim{background:linear-gradient(90deg, rgba(235,236,238,.88) 0%, rgba(235,236,238,.82) 40%, rgba(235,236,238,.52) 100%);}
  h1,h2,h3,.hero h1{color:#16161b;}

  .hero h1, .hero h1 span{
    color:#16161b;
    -webkit-text-fill-color:#16161b;
    opacity:1;
    background:none;
    -webkit-background-clip:border-box;
    background-clip:border-box;
    mix-blend-mode:normal;
    filter:none;
    text-shadow:none;
  }
  p,li{color:rgba(18,18,22,.82);}
  .topbar{background:rgba(11,11,14,.94);border-color:rgba(255,255,255,.12);box-shadow:0 20px 60px rgba(0,0,0,.28);}
  .work-card{background:rgba(255,255,255,.62) !important;border-color:rgba(0,0,0,.12) !important;}
  .work-card p{color:rgba(0,0,0,.82) !important;}
  .hero-btn{background:#16161b !important;color:#f2f3f5 !important;}
  .work-card{min-height:auto !important;align-content:start !important;gap:16px !important;}
  .work-card h3{margin-top:16px !important;}

  .hero{overflow:hidden;}
  @media (max-width: 900px){
    .hero h1{font-size:clamp(30px,9vw,72px);line-height:.94;}
  }
  @media (max-width: 560px){
    .hero h1{font-size:clamp(28px,8.6vw,64px);}
  }

  @media (orientation:landscape) and (max-height:600px){

    .hero h1{font-size:clamp(44px,7.5vw,80px);line-height:.94;}
  }

/* cursor, page layout and commission cards (was inline in the page) */
    .cursor { position:fixed; width:12px; height:12px; background:var(--silver); border-radius:50%;
      pointer-events:none; z-index:10001; transform:translate(-50%,-50%);
      transition:transform .1s ease, opacity .2s; mix-blend-mode:difference; }
    .cursor-ring { position:fixed; width:40px; height:40px; border:1.5px solid rgba(194,200,212,.5);
      border-radius:50%; pointer-events:none; z-index:10000; transform:translate(-50%,-50%);
      transition:transform .15s ease, width .3s, height .3s, border-color .3s; mix-blend-mode:difference; }

    /* ── Hero ────────────────────────────────────────────── */
    .ref-hero {
      position: relative;
      z-index: 1;
    }
    .ref-hero__label {
      text-transform: uppercase;
    }
    .ref-hero__sub {
      line-height: 1.75;
    }
    .ref-hero__cta { display:flex; gap:16px; flex-wrap:wrap; align-items:center; }

    /* ── Commission bar ──────────────────────────────────── */
    .ref-commissions {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(2,1fr);
    }
    @media(max-width:640px){ .ref-commissions { grid-template-columns: minmax(0,1fr); } }
    .ref-commission-cell__pct {
      font-size: clamp(3rem,5vw,4.5rem);
      line-height: 1;
      margin-bottom: 8px;
    }
    .ref-commission-cell__label {
      font-weight: 600;
      letter-spacing: .12em;
      text-transform: uppercase;
      margin-bottom: 12px;
    }
    .ref-commission-cell__desc {
      line-height: 1.65;
    }

    /* ── How it works ────────────────────────────────────── */
    .ref-how {
      position: relative;
      z-index: 1;
    }
    .ref-how__label {
      font-weight: 600;
      letter-spacing: .16em;
      text-transform: uppercase;
    }
    .ref-steps {
      display: grid;
      grid-template-columns: repeat(4,1fr);
    }
    @media(max-width:860px){ .ref-steps { grid-template-columns: repeat(2,1fr); } }
    @media(max-width:500px){ .ref-steps { grid-template-columns: 1fr; } }
    .ref-step:last-child { margin-right: 0; }
    .ref-step__num {
      font-size: 2.5rem;
      line-height: 1;
      margin-bottom: 16px;
    }
    .ref-step__title {
      margin-bottom: 10px;
    }
    .ref-step__desc {
      line-height: 1.7;
    }

    /* ── Payout examples ─────────────────────────────────── */
    .ref-examples {
      position: relative;
      z-index: 1;
    }
    .ref-examples__header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 24px;
      flex-wrap: wrap;
    }
    .ref-examples__label {
      font-weight: 600;
      letter-spacing: .16em;
      text-transform: uppercase;
    }
    .ref-table {
      width: 100%;
      border-collapse: collapse;
      font-family: var(--font-body);
    }
    .ref-table th {
      font-weight: 600;
      letter-spacing: .12em;
      text-transform: uppercase;
      text-align: left;
      padding: 14px 0;
    }
    .ref-table td {
      padding: 18px 0;
      line-height: 1.5;
    }
    .ref-table tr:last-child td { border-bottom: none; }

    /* ── Rules ───────────────────────────────────────────── */
    .ref-rules {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(40px,6vw,80px);
    }
    @media(max-width:680px){ .ref-rules { grid-template-columns: 1fr; } }
    .ref-rules__label {
      font-weight: 600;
      letter-spacing: .16em;
      text-transform: uppercase;
      grid-column: 1 / -1;
    }
    .ref-rule-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .ref-rule-list li {
      gap: 14px;
      align-items: flex-start;
    }
    .ref-rule-list li::before {
      content: '';
      display: block;
      flex-shrink: 0;
      width: 4px;
      height: 4px;
      border-radius: 50%;
    }
    .ref-rule-list li span {
      font-family: var(--font-body);
      line-height: 1.65;
    }

    /* ── Form ────────────────────────────────────────────── */
    .ref-form-section {
      position: relative;
      z-index: 1;
    }
    .ref-form-section__label {
      font-weight: 600;
      letter-spacing: .16em;
      text-transform: uppercase;
    }
    .ref-form-section__sub {
      line-height: 1.7;
    }

    .ref-form { display: flex; flex-direction: column; gap: 20px; }
    .ref-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media(max-width:500px){ .ref-form__row { grid-template-columns: 1fr; } }
    .ref-form__field { display: flex; flex-direction: column; gap: 8px; }
    .ref-form__label {
      font-weight: 600;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--silver,#C2C8D4);
    }
    .ref-form__input,
    .ref-form__select {
      background: rgba(255,255,255,.04);
      border: 1px solid var(--border,rgba(255,255,255,.1));
      padding: 14px 16px;
      font-family: var(--font-body);
      color: var(--white,#F0F2F6);
      outline: none;
      transition: border-color .2s;
      width: 100%;
      box-sizing: border-box;
    }
    .ref-form__input:focus, .ref-form__select:focus { border-color: var(--silver,#C2C8D4); }
    .ref-form__select { cursor: pointer; appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8F9E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: right 14px center;
      padding-right: 40px; }
    .ref-form__select option { background: #1a1a1e; color: var(--white,#F0F2F6); }
    .ref-form__note {
      line-height: 1.6;
    }
    .ref-form__success {
      display: none;
      padding: 24px;
      font-family: var(--font-body);
      font-size: .92rem;
      line-height: 1.7;
    }
  
