/* ==========================================================================
   Venderflow Affiliate Program Pages
   Scoped under .vfa so Webflow global styles cannot bleed in.
   ========================================================================== */

.vfa {
  --vfa-green: #079f4b;
  --vfa-green-dark: #057a39;
  --vfa-ink: #0f172a;
  --vfa-ink-2: #334155;
  --vfa-ink-3: #64748b;
  --vfa-line: #e2e8f0;
  --vfa-mint: #f2faf6;
  --vfa-mint-2: #e3f6eb;

  display: block;
  overflow-x: clip;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--vfa-ink);
  background:
    radial-gradient(ellipse 90% 440px at 14% 0%, rgba(7, 159, 75, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #f5fbf7 0%, #ffffff 28%, #f8fafc 100%);
  padding: 44px 20px 84px;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.vfa *, .vfa *::before, .vfa *::after {
  box-sizing: border-box;
}

.vfa :where(h1, h2, h3, p, ul, ol, li) {
  margin: 0;
  padding: 0;
}

.vfa :where(ul, ol) {
  list-style: none;
}

.vfa-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.vfa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 520px);
  gap: 44px;
  align-items: start;
  margin-bottom: 64px;
}

.vfa-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.vfa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--vfa-mint-2);
  border: 1px solid #c5ead5;
  color: var(--vfa-green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.vfa-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--vfa-ink);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.vfa-login-pill:hover {
  border-color: var(--vfa-green);
  color: var(--vfa-green-dark);
  background: var(--vfa-mint);
}

.vfa--vip .vfa-eyebrow {
  background: #0f172a;
  border-color: #0f172a;
  color: #ecfdf5;
}

.vfa-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--vfa-green);
}

.vfa--vip .vfa-eyebrow-dot {
  background: #34d399;
}

.vfa-h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--vfa-ink);
}

.vfa-h1 span {
  color: var(--vfa-green);
}

.vfa-lead {
  margin-bottom: 26px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--vfa-ink-2);
  max-width: 560px;
}

.vfa-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.vfa-stat {
  background: #ffffff;
  border: 1px solid var(--vfa-line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px -20px rgba(15, 23, 42, 0.25);
}

.vfa-stat__val {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--vfa-green-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.vfa-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vfa-ink-3);
}

.vfa-steps-box {
  background: #ffffff;
  border: 1px solid var(--vfa-line);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.22);
}

.vfa-steps-box__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--vfa-ink);
  margin-bottom: 14px;
}

.vfa-steps {
  display: grid;
  gap: 13px;
}

.vfa-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--vfa-ink-2);
}

.vfa-step strong {
  color: var(--vfa-ink);
}

.vfa-step__num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--vfa-mint-2);
  color: var(--vfa-green-dark);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vfa-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-bottom: 22px;
}

.vfa-benefit {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--vfa-ink-2);
  font-weight: 500;
}

.vfa-benefit svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  color: var(--vfa-green);
}

.vfa-portal-note {
  font-size: 14px;
  color: var(--vfa-ink-3);
}

.vfa-portal-note a {
  color: var(--vfa-green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Right Column: Signup Form Card ---------- */
.vfa-card {
  background: #ffffff;
  border: 1px solid #d7e7dd;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 22px 50px -28px rgba(15, 23, 42, 0.22),
    0 4px 14px -6px rgba(7, 159, 75, 0.12);
}

.vfa-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 26px;
  background: #f8fbf9;
  border-bottom: 1px solid #e6eee9;
  color: var(--vfa-ink);
  font-size: 14.5px;
  font-weight: 700;
}

.vfa--vip .vfa-card__bar {
  background: #0f172a;
  border-bottom-color: #1e293b;
  color: #ffffff;
}

.vfa-card__badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--vfa-mint-2);
  color: var(--vfa-green-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.vfa--vip .vfa-card__badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.vfa-form-shell {
  position: relative;
  min-height: 800px;
  padding: 6px 26px 16px;
  background: #ffffff;
}

.vfa-form-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vfa-ink-3);
  pointer-events: none;
  z-index: 0;
}

.vfa-iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 800px;
  min-height: 800px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.vfa-fallback {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--vfa-ink-3);
}

.vfa-fallback a {
  color: var(--vfa-green-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Earnings Table Section ---------- */
.vfa-section {
  margin-bottom: 60px;
}

.vfa-sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.vfa-h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--vfa-ink);
  margin-bottom: 10px;
}

.vfa-h2 span {
  color: var(--vfa-green);
}

.vfa-sec-sub {
  font-size: 16px;
  line-height: 1.58;
  color: var(--vfa-ink-3);
}

.vfa-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--vfa-line);
  border-radius: 18px;
  box-shadow: 0 12px 32px -24px rgba(15, 23, 42, 0.22);
}

.vfa-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
}

.vfa-table thead th {
  padding: 18px 20px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vfa-table thead th:not(:first-child),
.vfa-table tbody td:not(:first-child) {
  text-align: right;
}

.vfa-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f6;
  font-size: 15px;
  color: var(--vfa-ink-2);
}

.vfa-table tbody tr:last-child td {
  border-bottom: 0;
}

.vfa-table tbody tr.is-popular {
  background: #f2faf6;
}

.vfa-plan-cell {
  font-weight: 800;
  color: var(--vfa-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vfa-pop-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--vfa-green);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.vfa-earn {
  font-weight: 800;
  color: var(--vfa-green-dark);
  font-size: 16px;
}

.vfa-sub-val {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vfa-ink-3);
}

/* ---------- Partner Portal & Media Hub Section ---------- */
.vfa-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.vfa-portal-card {
  background: #ffffff;
  border: 1px solid var(--vfa-line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 28px -24px rgba(15, 23, 42, 0.2);
}

.vfa-portal-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--vfa-mint-2);
  color: var(--vfa-green-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vfa-portal-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--vfa-ink);
  margin-bottom: 8px;
}

.vfa-portal-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--vfa-ink-2);
}

.vfa-portal-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--vfa-ink);
}

.vfa-portal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 18px;
  background: #0f172a;
  color: #ffffff;
}

.vfa-portal-bar strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 4px;
}

.vfa-portal-bar span {
  display: block;
  font-size: 14px;
  color: #e2e8f0 !important;
}

.vfa-portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--vfa-green);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.vfa-portal-cta:hover {
  background: var(--vfa-green-dark);
}

/* ---------- FAQ Grid ---------- */
.vfa-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.vfa-faq {
  background: #ffffff;
  border: 1px solid var(--vfa-line);
  border-radius: 16px;
  padding: 22px 24px;
}

.vfa-faq h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--vfa-ink);
  margin-bottom: 8px;
}

.vfa-faq p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--vfa-ink-2);
}

@media (max-width: 991px) {
  .vfa-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .vfa-portal-grid,
  .vfa-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .vfa {
    padding: 28px 16px 64px;
  }
  .vfa-stats {
    grid-template-columns: 1fr;
  }
  .vfa-benefits {
    grid-template-columns: 1fr;
  }
  .vfa-card__bar {
    padding: 14px 18px;
  }
  .vfa-form-shell {
    padding: 16px 16px 12px;
  }
}
