/* ==========================================================================
   Payset Referral Program — pixel-close stylesheet
   https://www.payset.io/referral-program/
   Measured @ 1440
   ========================================================================== */

.payset-ref {
  --ref-bg: #f5f2ef;
  --ref-dark: #292a2e;
  --ref-ink: #121314;
  --ref-text: #333333;
  --ref-text-dark: #2c2a24;
  --ref-light: #fafafa;
  --ref-lime: #00f572;
  --ref-taupe: #bfb5af;
  --ref-card-r: 24px;
  --ref-container: 1280px;
  --font-display: "ES Rebond Grotesque", "Space Grotesk", sans-serif;
  --font-ui: "Inter Tight", Inter, sans-serif;
  background: var(--ref-bg);
  color: var(--ref-text);
  font-family: var(--font-ui);
}

body.ref-page {
  background: var(--ref-bg, #f5f2ef);
}

body.ref-page .m-header {
  background: #fff;
}

body.ref-page .m-header__cta {
  color: #fff;
}

/* --- Shared ------------------------------------------------------------- */
.payset-ref .ref-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 100px;
  line-height: 80px;
  letter-spacing: -0.2px;
  color: var(--ref-light);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.payset-ref .ref-display--dark {
  color: var(--ref-text-dark);
}

.payset-ref .ref-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.payset-ref .ref-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ref-lime);
  color: #1a1a1a;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.payset-ref .ref-btn-primary:hover {
  filter: brightness(1.05);
}

.payset-ref .ref-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 17px 31px;
  border-radius: 32px;
  background: var(--ref-ink);
  color: var(--ref-lime);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
  text-decoration: none;
  border: 1px solid var(--ref-lime);
}

.payset-ref .ref-btn-ghost--light {
  background: var(--ref-ink);
}

/* --- REF01 Hero --------------------------------------------------------- */
.payset-ref .ref-hero {
  padding: 8px 80px 0;
}

.payset-ref .ref-hero__card {
  max-width: var(--ref-container);
  margin: 0 auto;
  background: var(--ref-dark);
  border-radius: var(--ref-card-r);
  padding: 64px 0 56px;
  overflow: hidden;
}

.payset-ref .ref-hero__intro {
  padding: 0 200px;
  display: grid;
  gap: 20px;
  justify-items: center;
}

.payset-ref .ref-hero__sub {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: var(--ref-light);
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
}

.payset-ref .ref-hero__art {
  display: flex;
  justify-content: center;
  margin-top: 64px;
  padding: 0 160px;
}

.payset-ref .ref-hero__art img {
  width: min(880px, 100%);
  height: auto;
  display: block;
}

.payset-ref .ref-benefits {
  display: flex;
  gap: 32px;
  max-width: 979px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.payset-ref .ref-benefit {
  flex: 1;
  text-align: center;
  color: var(--ref-light);
  display: grid;
  gap: 16px;
  justify-items: center;
}

.payset-ref .ref-benefit__icon {
  width: 80px;
  height: 80px;
  display: block;
}

.payset-ref .ref-benefit h3 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ref-light);
}

.payset-ref .ref-benefit p {
  font-size: 16px;
  line-height: 24px;
  color: rgba(250, 250, 250, 0.85);
  max-width: 28ch;
}

.payset-ref .ref-hero .ref-cta-row {
  margin-top: 48px;
}

/* --- REF02 Partner + form ----------------------------------------------- */
.payset-ref .ref-partner {
  padding: 80px 80px 40px;
}

.payset-ref .ref-partner__grid {
  max-width: var(--ref-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 615px 1fr;
  gap: 16px;
  align-items: start;
}

.payset-ref .ref-partner__stack {
  display: grid;
  gap: 16px;
}

.payset-ref .ref-photo-card {
  width: 615px;
  height: 427px;
  border-radius: var(--ref-card-r);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.payset-ref .ref-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 19, 20, 0.55) 0%, rgba(18, 19, 20, 0.15) 55%, rgba(18, 19, 20, 0.35) 100%);
  pointer-events: none;
}

.payset-ref .ref-photo-card--promote::after {
  background: linear-gradient(180deg, rgba(245, 242, 239, 0.2) 0%, rgba(245, 242, 239, 0) 45%);
}

.payset-ref .ref-photo-card__copy {
  position: relative;
  z-index: 1;
  padding: 32px;
  max-width: 420px;
}

.payset-ref .ref-photo-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.payset-ref .ref-photo-card p {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.92);
}

.payset-ref .ref-photo-card--promote h2,
.payset-ref .ref-photo-card--promote p {
  color: var(--ref-text-dark);
}

.payset-ref .ref-form-card {
  background: #fff;
  border-radius: var(--ref-card-r);
  padding: 32px;
  min-height: 899px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payset-ref .ref-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.payset-ref .ref-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.payset-ref .ref-form input,
.payset-ref .ref-form textarea,
.payset-ref .ref-phone {
  width: 100%;
  border: 0;
  outline: none;
  background: rgba(105, 100, 100, 0.05);
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  color: var(--ref-text);
}

.payset-ref .ref-form input {
  height: 58px;
  padding: 17px 15px;
}

.payset-ref .ref-form textarea {
  min-height: 410px;
  padding: 20px 15px;
  border-radius: 16px;
  resize: vertical;
}

.payset-ref .ref-form input::placeholder,
.payset-ref .ref-form textarea::placeholder {
  color: #969696;
}

.payset-ref .ref-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 15px;
}

.payset-ref .ref-phone__flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--ref-text);
  font-size: 15px;
  font-weight: 500;
}

.payset-ref .ref-phone__flag img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.payset-ref .ref-phone input {
  background: transparent;
  padding: 0;
  height: 100%;
  border-radius: 0;
}

.payset-ref .ref-btn-submit {
  margin-top: auto;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--ref-ink);
  color: var(--ref-lime);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.payset-ref .ref-form__error {
  color: #c0392b;
  font-size: 14px;
}

.payset-ref .ref-form__success {
  display: grid;
  gap: 12px;
  padding: 48px 8px;
}

.payset-ref .ref-form__success h3 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
}

.payset-ref .ref-form__success[hidden],
.payset-ref .ref-form[hidden] {
  display: none !important;
}

/* --- REF03 Why / compare table ------------------------------------------ */
.payset-ref .ref-why {
  padding: 40px 80px;
}

.payset-ref .ref-why__card {
  max-width: var(--ref-container);
  margin: 0 auto;
  background: var(--ref-taupe);
  border-radius: var(--ref-card-r);
  padding: 64px 0 72px;
}

.payset-ref .ref-why__head {
  max-width: 979px;
  margin: 0 auto 64px;
  padding: 0 24px;
  text-align: center;
  display: grid;
  gap: 20px;
}

.payset-ref .ref-why__sub {
  font-size: 20px;
  line-height: 32px;
  color: var(--ref-text-dark);
  max-width: 720px;
  margin: 0 auto;
}

.payset-ref .ref-compare {
  width: 1148px;
  max-width: calc(100% - 132px);
  margin: 0 auto;
  position: relative;
}

.payset-ref .ref-compare__head,
.payset-ref .ref-compare__row {
  display: grid;
  grid-template-columns: 220px repeat(6, 154px);
  align-items: center;
}

.payset-ref .ref-compare__head {
  height: 96px;
  position: relative;
  z-index: 2;
}

.payset-ref .ref-compare__spacer {
  height: 100%;
}

.payset-ref .ref-compare__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 8px;
}

.payset-ref .ref-compare__logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.payset-ref .ref-compare__logo.is-payset {
  background: var(--ref-lime);
  border-radius: 24px 24px 0 0;
  height: calc(100% + 8px);
  align-self: end;
  margin-bottom: -8px;
}

.payset-ref .ref-compare__table {
  background: #fff;
  border: 1px solid var(--ref-ink);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.payset-ref .ref-compare__row {
  min-height: 89px;
  border-bottom: 1px solid rgba(18, 19, 20, 0.08);
}

.payset-ref .ref-compare__row:last-child {
  border-bottom: 0;
}

.payset-ref .ref-compare__label {
  padding: 16px 20px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ref-ink);
}

.payset-ref .ref-compare__hint {
  display: block;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: #646464;
  margin-top: 4px;
}

.payset-ref .ref-compare__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  padding: 12px 10px;
  min-height: 89px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ref-text);
}

.payset-ref .ref-compare__cell strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: var(--ref-ink);
}

.payset-ref .ref-compare__cell span {
  font-size: 12px;
  color: #646464;
}

.payset-ref .ref-compare__cell.is-payset {
  background: var(--ref-lime);
  color: var(--ref-ink);
  border-left-color: transparent;
}

.payset-ref .ref-compare__cell.is-payset strong {
  color: var(--ref-ink);
}

.payset-ref .ref-compare__cell img {
  display: block;
}

/* --- REF04 FAQ ---------------------------------------------------------- */
.payset-ref .ref-faq {
  padding: 64px 80px;
}

.payset-ref .ref-faq__inner {
  max-width: 880px;
  margin: 0 auto;
}

.payset-ref .ref-faq__item {
  border-bottom: 1px solid rgba(18, 19, 20, 0.12);
}

.payset-ref .ref-faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--ref-ink);
}

.payset-ref .ref-faq__item summary::-webkit-details-marker {
  display: none;
}

.payset-ref .ref-faq__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
}

.payset-ref .ref-faq__icon::before,
.payset-ref .ref-faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ref-ink);
  transition: transform 0.2s ease;
}

.payset-ref .ref-faq__icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}

.payset-ref .ref-faq__icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}

.payset-ref .ref-faq__item[open] .ref-faq__icon::after {
  transform: translateX(-50%) scaleY(0);
}

.payset-ref .ref-faq__body {
  padding: 0 0 22px;
  color: #646464;
  font-size: 16px;
  line-height: 26px;
}

.payset-ref .ref-faq__body ul {
  margin: 12px 0 0 18px;
}

.payset-ref .ref-faq__body a {
  color: var(--ref-ink);
  font-weight: 600;
}

/* --- REF05 Final CTA ---------------------------------------------------- */
.payset-ref .ref-final {
  padding: 64px 80px 96px;
}

.payset-ref .ref-final__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 28px;
  justify-items: center;
}

.payset-ref .ref-final__sub {
  max-width: 640px;
  font-size: 20px;
  line-height: 32px;
  color: var(--ref-text);
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1200px) {
  .payset-ref .ref-hero,
  .payset-ref .ref-partner,
  .payset-ref .ref-why,
  .payset-ref .ref-faq,
  .payset-ref .ref-final {
    padding-left: 24px;
    padding-right: 24px;
  }

  .payset-ref .ref-hero__intro {
    padding: 0 32px;
  }

  .payset-ref .ref-hero__art {
    padding: 0 32px;
  }

  .payset-ref .ref-display {
    font-size: clamp(48px, 8vw, 100px);
    line-height: 0.9;
  }

  .payset-ref .ref-partner__grid {
    grid-template-columns: 1fr;
  }

  .payset-ref .ref-photo-card {
    width: 100%;
  }

  .payset-ref .ref-compare {
    max-width: 100%;
    overflow-x: auto;
  }

  .payset-ref .ref-compare__head,
  .payset-ref .ref-compare__row,
  .payset-ref .ref-compare__table {
    width: 1148px;
  }
}

@media (max-width: 800px) {
  .payset-ref .ref-benefits {
    flex-direction: column;
    gap: 40px;
  }
}
