/* Career Badger — referral landing.
 *
 * Shown on the marketing homepage when a ?ref code is present. Replaces the
 * default hero question with a branded "X gave you a week of Plus" treatment.
 * Injected/toggled by js/referral.js. Uses the shared tokens (tokens.css). */

.ref-hero {
  width: 100%;
  max-width: 560px;
  margin: 0 auto var(--sp-6);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--magenta);
  border-radius: 20px;
  background: var(--surface-raised);
  text-align: center;
}

.ref-hero__pill {
  display: inline-block;
  background: var(--magenta);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}

.ref-hero__head {
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 var(--sp-3);
  color: var(--text);
}

/* The named portion ("Dale") picks up the brand accent once resolved. */
.ref-hero__name { color: var(--magenta); }

.ref-hero__sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 auto var(--sp-5);
  max-width: 42ch;
}

.ref-hero__benefits {
  list-style: none;
  margin: 0 auto var(--sp-5);
  padding: 0;
  display: inline-block;
  text-align: left;
}

.ref-hero__benefits li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--sp-2);
  font-size: 15px;
  color: var(--text);
}

.ref-hero__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--magenta);
  /* white check, drawn so we add no image dependency */
  background-image:
    linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(-45deg, transparent 55%, #fff 55%, #fff 68%, transparent 68%);
  background-size: 10px 6px, 7px 10px;
  background-position: 5px 9px, 4px 4px;
  background-repeat: no-repeat;
}

.ref-hero__cta {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  background: var(--magenta);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 15px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.ref-hero__cta:hover { opacity: 0.9; }

.ref-hero__fine {
  font-size: 13px;
  color: var(--muted);
  margin: var(--sp-3) 0 0;
}

/* When the referral landing is active, the JS hides the default hero question
 * and the (sign-in-oriented) email form, leaving Google + the modal signup. */
.ref-active .hero__title-block { display: none; }

@media (max-width: 600px) {
  .ref-hero {
    padding: var(--sp-5) var(--sp-4);
    border-radius: 16px;
  }
}
