/* ============================================
   Referral Landing Page Styles
   ============================================ */

/* --- Section Spacing Override (148px instead of default 180px) --- */
.main section {
  margin-bottom: 148px;
}

/* --- Section Common --- */
.ref-section {
  width: 100%;
  box-sizing: border-box;
}

.ref-section__title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.96px;
  color: #020202;
  text-align: center;
}

.ref-section__subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #020202;
  text-align: center;
}

/* --- Card Common --- */
.ref-card {
  background-color: #ffffff;
  border-radius: 32px;
  padding: 26px;
  overflow: hidden;
}

.ref-card__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  color: #020202;
}

.ref-card__text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #667085;
}

/* --- Button --- */
.ref-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #020202;
  color: #ffffff;
  border: none;
  padding: 24px;
  border-radius: 24px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.ref-button:hover {
  background-color: #1c1e22;
}

.ref-button:active {
  background-color: #020202;
}

/* ============================================
   Hero Section
   ============================================ */
.ref-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  gap: 40px;
}

.ref-hero__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 441px;
  flex-shrink: 0;
}

.ref-hero__title-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ref-hero__title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.96px;
  color: #020202;
}

.ref-hero__subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #020202;
}

.ref-hero__image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.ref-hero__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================
   About Section
   ============================================ */
.ref-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.ref-about__cards {
  display: flex;
  gap: 16px;
  width: 100%;
}

.ref-about__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ref-about__card-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
}

.ref-about__card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================
   How It Works Section
   ============================================ */
.ref-how-it-works {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.ref-how-it-works__steps {
  display: flex;
  gap: 16px;
  width: 100%;
}

.ref-how-it-works__step {
  flex: 1;
  display: flex;
  align-items: center;
}

.ref-how-it-works__step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: flex-end;
}

.ref-how-it-works__step-number {
  width: 32px;
  height: 32px;
  background-color: #18a963;
  border-radius: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #ffffff;
}

.ref-how-it-works__step-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ref-how-it-works__step-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #020202;
}

.ref-how-it-works__step-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #667085;
}

.ref-how-it-works__step-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 24px;
}

/* ============================================
   Earnings Section
   ============================================ */
.ref-earnings {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.ref-earnings__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.ref-earnings__cards {
  display: flex;
  gap: 16px;
  width: 100%;
}

.ref-earnings__card-wrapper {
  flex: 1;
  min-width: 0;
}

.ref-earnings__card {
  flex: 1;
  height: 195px;
  border-radius: 32px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.ref-earnings__card--light {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #ffffff 60%,
    rgba(97, 208, 154, 0.15) 100%
  );
  border: 1px solid #ffffff;
}

.ref-earnings__card--dark {
  background: linear-gradient(
    135deg,
    #191a1e 0%,
    #191a1e 60%,
    rgba(40, 99, 236, 0.15) 100%
  );
}

.ref-earnings__card-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

.ref-earnings__card-amount {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: #020202;
  position: relative;
  z-index: 1;
}

.ref-earnings__card--dark .ref-earnings__card-amount {
  color: #ffffff;
}

.ref-earnings__card-partners {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #020202;
  position: relative;
  z-index: 1;
}

.ref-earnings__card--dark .ref-earnings__card-partners {
  color: #ffffff;
}

/* ============================================
   Register / CTA Section
   ============================================ */
.ref-register {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    radial-gradient(
      ellipse at bottom left,
      rgba(152, 244, 128, 1) 0%,
      rgba(101, 230, 132, 1) 8%,
      rgba(75, 223, 133, 1) 12%,
      rgba(49, 216, 135, 1) 16%,
      rgba(47, 173, 116, 0.75) 22%,
      rgba(45, 131, 97, 0.5) 28%,
      rgba(42, 46, 59, 0) 40%,
      rgba(25, 26, 30, 0) 55%
    ),
    radial-gradient(
      ellipse at top right,
      rgba(152, 244, 128, 1) 0%,
      rgba(101, 230, 132, 1) 8%,
      rgba(75, 223, 133, 1) 12%,
      rgba(49, 216, 135, 1) 16%,
      rgba(47, 173, 116, 0.75) 22%,
      rgba(45, 131, 97, 0.5) 28%,
      rgba(42, 46, 59, 0) 40%,
      rgba(25, 26, 30, 0) 55%
    ),
    linear-gradient(90deg, #191a1e 0%, #191a1e 100%);
}

.ref-register__bg-image {
  position: absolute;
  right: 20px;
  bottom: -10px;
  width: 32%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.8;
}

.ref-register__title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.96px;
  color: #ffffff;
  max-width: 670px;
  position: relative;
  z-index: 1;
}

.ref-register .ref-button {
  position: relative;
  z-index: 1;
}

/* ============================================
   FAQ Section
   ============================================ */
.ref-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 714px;
  margin: 0 auto;
}

.ref-faq__title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.64px;
  color: #020202;
  text-align: center;
  width: 100%;
}

.ref-faq__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.ref-faq__item {
  background-color: #ffffff;
  border-radius: 32px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ref-faq__item-question {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: #020202;
}

.ref-faq__item-answer-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #667085;
}

/* ============================================
   Responsive: Tablet (<=1100px)
   ============================================ */
@media screen and (max-width: 1100px) {
  .ref-hero__title {
    font-size: 40px;
  }

  .ref-hero__content {
    max-width: 360px;
  }

  .ref-register {
    padding: 60px;
  }

  .ref-register__title {
    font-size: 40px;
  }

  .ref-section__title {
    font-size: 40px;
  }
}

/* ============================================
   Responsive: Small Tablet (<=900px)
   ============================================ */
@media screen and (max-width: 900px) {
  .ref-hero {
    flex-direction: column;
    text-align: center;
  }

  .ref-hero__content {
    max-width: 100%;
    align-items: center;
  }

  .ref-hero__title,
  .ref-hero__subtitle {
    text-align: center;
  }

  .ref-hero__image-wrapper {
    max-width: 400px;
    justify-content: center;
  }

  .ref-about__cards {
    flex-direction: column;
  }

  .ref-how-it-works__steps {
    flex-direction: column;
    gap: 0;
  }

  .ref-how-it-works__step {
    flex-direction: row;
    align-items: flex-start;
  }

  .ref-how-it-works__step-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .ref-how-it-works__step-arrow {
    display: none;
  }

  .ref-earnings__cards {
    flex-direction: column;
  }

  .ref-earnings__card {
    height: auto;
    min-height: 195px;
  }

  .ref-register {
    padding: 40px;
  }

  .ref-register__title {
    font-size: 36px;
    max-width: 100%;
  }

  .ref-section__title {
    font-size: 36px;
  }
}

/* ============================================
   Responsive: Mobile (<=768px)
   ============================================ */
@media screen and (max-width: 768px) {
  /* Reduce section spacing on mobile */
  .main section {
    margin-bottom: 80px;
  }

  .ref-hero {
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 24px;
  }

  .ref-hero__content {
    gap: 24px;
  }

  .ref-hero__title-block {
    gap: 16px;
  }

  .ref-hero__title {
    font-size: 32px;
    letter-spacing: -0.64px;
  }

  .ref-hero__subtitle {
    font-size: 14px;
  }

  .ref-hero__image-wrapper {
    max-width: 320px;
  }

  .ref-button {
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 14px;
  }

  .ref-section__title {
    font-size: 28px;
    letter-spacing: -0.56px;
  }

  /* Match landing card styles: title 16px, text 12px */
  .ref-card {
    padding: 24px;
    border-radius: 24px;
  }

  .ref-card__title {
    font-size: 16px;
    line-height: 1.2;
  }

  .ref-card__text {
    font-size: 12px;
    line-height: 1.2;
  }

  .ref-about {
    gap: 24px;
  }

  .ref-about__card {
    gap: 16px;
  }

  .ref-about__card-icon {
    width: 32px;
    height: 32px;
  }

  .ref-about__card-content {
    gap: 8px;
  }

  /* How It Works: add gap between steps, fix text alignment */
  .ref-how-it-works {
    gap: 24px;
  }

  .ref-how-it-works__steps {
    gap: 16px;
  }

  .ref-how-it-works__step-card {
    gap: 12px;
  }

  .ref-how-it-works__step-details {
    gap: 8px;
  }

  .ref-how-it-works__step-title {
    font-size: 14px;
  }

  .ref-how-it-works__step-text {
    font-size: 12px;
    line-height: 1.3;
  }

  .ref-how-it-works__step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .ref-earnings {
    gap: 24px;
  }

  .ref-earnings__card {
    border-radius: 24px;
    padding: 20px;
  }

  .ref-earnings__card-amount {
    font-size: 24px;
  }

  .ref-earnings__card-partners {
    font-size: 14px;
  }

  .ref-register {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .ref-register__title {
    font-size: 28px;
    letter-spacing: -0.56px;
    max-width: 100%;
  }

  .ref-register__bg-image {
    right: 0;
    bottom: 0;
    width: 40%;
    opacity: 0.4;
  }

  .ref-faq {
    gap: 24px;
  }

  .ref-faq__title {
    font-size: 24px;
  }

  .ref-faq__item {
    padding: 20px;
    border-radius: 24px;
    gap: 12px;
  }

  .ref-faq__item-question {
    font-size: 14px;
  }

  .ref-faq__item-answer-text {
    font-size: 12px;
  }

  .ref-section__subtitle {
    font-size: 14px;
  }
}

/* ============================================
   Responsive: Small Mobile (<=475px)
   ============================================ */
@media screen and (max-width: 475px) {
  .main section {
    margin-bottom: 60px;
  }

  .ref-hero__title {
    font-size: 24px;
    letter-spacing: -0.48px;
  }

  .ref-section__title {
    font-size: 21px;
    letter-spacing: -0.42px;
  }

  .ref-register__title {
    font-size: 21px;
    letter-spacing: -0.42px;
  }

  .ref-register {
    padding: 24px 16px;
  }
}
