/* Rich Ways Referrals — Join the Partnership page
 * Conversion-focused, editorial dark layout matching jackkalala.com
 */

.rwr-join {
    --rwr-bg: #111518;
    --rwr-surface: #161a1d;
    --rwr-surface-elev: #1a1e22;
    --rwr-border: #2a2f33;
    --rwr-border-soft: #1d2125;
    --rwr-text: #e8e6e1;
    --rwr-text-muted: #9a978e;
    --rwr-text-dim: #6a6760;
    --rwr-text-faint: #8a8780;
    --rwr-gold: #c9a961;
    --rwr-gold-bright: #e4c47a;
    --rwr-gold-soft: #8a8266;
    --rwr-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --rwr-font-sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;

    background: var(--rwr-bg);
    color: var(--rwr-text);
    font-family: var(--rwr-font-sans);
    padding: 64px 0 96px;
    width: 100%;
}
.rwr-join *, .rwr-join *::before, .rwr-join *::after { box-sizing: border-box; }

.rwr-join-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Make the page background dark too */
body.rwr-fullbleed-page .rwr-join { background: var(--rwr-bg); }

/* ─── Eyebrow style used throughout ─────────────────────────── */

.rwr-join-eyebrow,
.rwr-pitch-eyebrow,
.rwr-how-eyebrow,
.rwr-terms-eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rwr-gold);
    font-weight: 500;
    margin-bottom: 16px;
}

/* ─── Header: welcome message ────────────────────────────────── */

.rwr-join-header {
    text-align: center;
    margin-bottom: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--rwr-border);
    animation: rwrJoinFadeIn 0.6s ease-out;
}
.rwr-join-title {
    font-family: var(--rwr-font-serif);
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.rwr-join-lede {
    color: var(--rwr-text-muted);
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    max-width: 600px;
}
.rwr-join-lede em { color: var(--rwr-gold); font-style: italic; }

@keyframes rwrJoinFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Pitch ─────────────────────────────────────────────────── */

.rwr-pitch {
    text-align: center;
    margin-bottom: 56px;
}
.rwr-pitch-headline {
    font-family: var(--rwr-font-serif);
    font-size: 36px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.rwr-pitch-body {
    color: var(--rwr-text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 620px;
}

/* ─── 3 earning streams ─────────────────────────────────────── */

.rwr-streams {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rwr-border);
    border: 1px solid var(--rwr-border);
    margin-bottom: 72px;
}
.rwr-stream {
    background: var(--rwr-bg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
}
.rwr-stream-feature {
    background: var(--rwr-surface);
    /* Subtle gold highlight on the bonus tier */
}
.rwr-stream-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--rwr-gold);
}
.rwr-stream-icon {
    font-family: var(--rwr-font-serif);
    font-size: 12px;
    font-style: italic;
    color: var(--rwr-gold);
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.rwr-stream-amount {
    font-family: var(--rwr-font-serif);
    font-size: 44px;
    font-weight: 400;
    color: var(--rwr-gold);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.rwr-stream-feature .rwr-stream-amount {
    color: var(--rwr-gold-bright);
}
.rwr-stream-unit {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rwr-text-faint);
    margin-bottom: 18px;
    font-weight: 500;
}
.rwr-stream-desc {
    color: var(--rwr-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ─── How it works ──────────────────────────────────────────── */

.rwr-how {
    margin-bottom: 72px;
    text-align: center;
}
.rwr-how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 36px;
}
.rwr-how-step {
    text-align: left;
    padding: 0;
}
.rwr-how-num {
    font-family: var(--rwr-font-serif);
    font-size: 36px;
    font-weight: 400;
    color: var(--rwr-gold);
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.6;
}
.rwr-how-title {
    font-family: var(--rwr-font-serif);
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}
.rwr-how-text {
    color: var(--rwr-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ─── CTA ───────────────────────────────────────────────────── */

.rwr-cta {
    background: var(--rwr-surface);
    border: 1px solid var(--rwr-border);
    padding: 48px;
    margin-bottom: 72px;
    text-align: center;
    position: relative;
}
.rwr-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 60px;
    margin-left: -30px;
    height: 2px;
    background: var(--rwr-gold);
}
.rwr-cta-error {
    background: rgba(220, 53, 69, 0.12);
    color: #ff7782;
    border-left: 3px solid #dc3545;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: left;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.rwr-cta-form { max-width: 480px; margin: 0 auto; }

.rwr-cta-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    text-align: left;
    color: var(--rwr-text-muted);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}
.rwr-cta-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--rwr-gold);
    cursor: pointer;
}
.rwr-cta-checkbox a {
    color: var(--rwr-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rwr-cta-checkbox a:hover { color: var(--rwr-gold-bright); }

.rwr-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    background: var(--rwr-gold);
    color: var(--rwr-bg);
    border: none;
    padding: 20px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--rwr-font-sans);
    transition: background 0.2s, transform 0.1s;
}
.rwr-cta-button:hover {
    background: var(--rwr-gold-bright);
    transform: translateY(-1px);
}
.rwr-cta-button:active { transform: translateY(0); }
.rwr-cta-arrow {
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.2s;
}
.rwr-cta-button:hover .rwr-cta-arrow {
    transform: translateX(4px);
}

.rwr-cta-skip {
    display: inline-block;
    margin-top: 20px;
    color: var(--rwr-text-dim);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.rwr-cta-skip:hover {
    color: var(--rwr-text-muted);
    border-bottom-color: var(--rwr-text-dim);
}

/* ─── Terms summary ─────────────────────────────────────────── */

.rwr-terms {
    margin-bottom: 32px;
}
.rwr-terms-title {
    font-family: var(--rwr-font-serif);
    font-size: 26px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 28px;
    letter-spacing: -0.2px;
}
.rwr-terms-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.rwr-terms-list li {
    padding: 18px 0 18px 24px;
    border-bottom: 1px solid var(--rwr-border-soft);
    color: var(--rwr-text-muted);
    font-size: 14px;
    line-height: 1.7;
    position: relative;
}
.rwr-terms-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--rwr-gold);
}
.rwr-terms-list li:last-child { border-bottom: none; }
.rwr-terms-list strong { color: var(--rwr-text); font-weight: 600; }

.rwr-terms-fineprint {
    color: var(--rwr-text-dim);
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--rwr-border-soft);
}

/* ─── Login required state ──────────────────────────────────── */

.rwr-join-prompt {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 32px;
    text-align: center;
    background: var(--rwr-bg);
    color: var(--rwr-text);
}
.rwr-join-prompt h2,
.rwr-join-heading {
    font-family: var(--rwr-font-serif);
    font-size: 36px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}
.rwr-join-body {
    color: var(--rwr-text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 32px;
}
.rwr-join-btn-primary {
    display: inline-block;
    background: var(--rwr-gold);
    color: var(--rwr-bg) !important;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s;
}
.rwr-join-btn-primary:hover {
    background: var(--rwr-gold-bright);
    color: var(--rwr-bg) !important;
}

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 780px) {
    .rwr-join { padding: 40px 0 64px; }
    .rwr-join-inner { padding: 0 24px; }
    .rwr-join-title { font-size: 36px; }
    .rwr-pitch-headline { font-size: 28px; }
    .rwr-streams { grid-template-columns: 1fr; }
    .rwr-how-steps { grid-template-columns: 1fr; gap: 28px; }
    .rwr-cta { padding: 36px 24px; }
    .rwr-stream-amount { font-size: 38px; }
}
@media (max-width: 480px) {
    .rwr-join-title { font-size: 30px; }
    .rwr-pitch-headline { font-size: 24px; }
    .rwr-terms-title { font-size: 22px; }
    .rwr-cta-button { font-size: 13px; padding: 18px 24px; letter-spacing: 1.5px; }
}

/* ─── Public signup form (logged-out visitors) ──────────────── */

.rwr-cta-headline {
    text-align: center;
    margin-bottom: 28px;
}
.rwr-cta-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rwr-gold);
    margin-bottom: 8px;
    font-weight: 500;
}
.rwr-cta-title {
    font-family: var(--rwr-font-serif);
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    letter-spacing: -0.2px;
}

.rwr-signup-form {
    text-align: left;
}
.rwr-form-row {
    margin-bottom: 16px;
}
.rwr-form-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--rwr-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}
.rwr-form-row input[type="text"],
.rwr-form-row input[type="email"],
.rwr-form-row input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--rwr-bg);
    border: 1px solid var(--rwr-border);
    color: var(--rwr-text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.rwr-form-row input::placeholder { color: var(--rwr-text-dim); }
.rwr-form-row input:focus {
    outline: none;
    border-color: var(--rwr-gold);
}

.rwr-cta-login-note {
    color: var(--rwr-text-dim);
    font-size: 13px;
    text-align: center;
    margin: 18px 0 0;
}
.rwr-cta-login-note a {
    color: var(--rwr-gold);
    text-decoration: none;
}
.rwr-cta-login-note a:hover { color: var(--rwr-gold-bright); text-decoration: underline; }
