/* ═══════════════════════════════════════════════════════
   REJOIN PAGE — rejoin.css
   Namespace: rj-*
   Landing page for returning clients
   ═══════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────── */
.rj-hero {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.rj-hero-glow {
    position: absolute;
    width: 700px;
    height: 600px;
    top: -15%;
    right: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49,184,152,.07) 0%, transparent 60%);
    pointer-events: none;
}

.rj-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 180px 64px 80px;
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
    align-items: center;
}

.rj-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--type-caption);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 16px;
}
.rj-eyebrow::before {
    content: '';
    width: 26px;
    height: 1.5px;
    background: var(--teal-light);
    opacity: 0.6;
}

.rj-h1 {
    font-family: var(--font-serif);
    font-size: var(--type-display);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: white;
    margin-bottom: 20px;
}
.rj-h1 em { color: var(--teal-light); font-style: italic; }

.rj-hero-sub {
    font-size: var(--type-body);
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    line-height: var(--lh-body);
    max-width: 520px;
    margin-bottom: 32px;
}

.rj-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.rj-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 100px;
    padding: 13px 28px;
    font-family: var(--font-sans);
    font-size: var(--type-small);
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, transform .15s, border-color .2s;
}
.rj-btn-primary {
    background: var(--teal);
    color: rgba(255,255,255,0.95);
    box-shadow: 0 5px 18px rgba(49,184,152,.25);
}
.rj-btn-primary:hover { background: var(--teal-dim); transform: translateY(-1px); }
.rj-btn-ghost {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.18);
}
.rj-btn-ghost:hover { border-color: rgba(255,255,255,0.35); color: white; }

/* Proof card */
.rj-proof-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px 24px;
}
.rj-proof-title {
    font-size: var(--type-caption);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.70);
    margin-bottom: 20px;
}
.rj-proof-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.rj-proof-item:first-of-type { border-top: none; padding-top: 0; }
.rj-proof-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: white;
}
.rj-proof-detail {
    font-size: var(--type-small);
    font-weight: 400;
    color: var(--teal-light);
}

/* ── SECTIONS ─────────────────────────────────────── */
.rj-section { padding: 96px 0; }
.rj-section-sand { background: var(--sand); }
.rj-section-white { background: var(--off-white); }
.rj-section-forest { background: var(--dark); color: white; }

.rj-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
}

.rj-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.rj-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--type-caption);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
}
.rj-tag-light { color: var(--teal-light); }
.rj-tag-line { width: 26px; height: 1.5px; background: var(--teal); opacity: 0.5; }
.rj-tag-line-light { background: var(--teal-light); opacity: 0.4; }

.rj-h2 {
    font-family: var(--font-serif);
    font-size: var(--type-h1);
    font-weight: 400;
    line-height: 1.12;
    color: var(--text-dark);
    margin-bottom: 14px;
}
.rj-h2 em { color: var(--teal); font-style: italic; }
.rj-h2-light { color: white; }
.rj-h2-light em { color: var(--teal-light); }

.rj-section-sub {
    font-size: var(--type-body);
    font-weight: 400;
    line-height: var(--lh-body);
    color: var(--text-medium);
}
.rj-sub-light { color: white; }

/* ── REASONS GRID ─────────────────────────────────── */
.rj-reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.rj-reason {
    background: var(--card-bg);
    border: 1px solid rgba(26,36,32,0.06);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.rj-reason:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,36,32,0.08); }

.rj-reason-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(49,184,152,0.08);
    color: var(--teal);
    margin-bottom: 20px;
}

.rj-reason h3 {
    font-family: var(--font-serif);
    font-size: var(--type-h3);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.rj-reason p {
    font-size: var(--type-body);
    font-weight: 400;
    line-height: var(--lh-body);
    color: var(--text-medium);
}

/* ── WHAT'S NEW GRID ──────────────────────────────── */
.rj-new-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rj-new-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 32px 28px;
    transition: background .25s, border-color .25s;
}
.rj-new-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }

.rj-new-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(49,184,152,0.12);
    color: var(--teal-light);
    margin-bottom: 18px;
}

.rj-new-card h3 {
    font-family: var(--font-serif);
    font-size: var(--type-body-lg);
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
}
.rj-new-card p {
    font-size: var(--type-body);
    font-weight: 400;
    line-height: var(--lh-body);
    color: white;
    margin-bottom: 14px;
}
.rj-new-link {
    font-size: var(--type-small);
    font-weight: 500;
    color: var(--teal-light);
    text-decoration: none;
    transition: color .2s;
}
.rj-new-link:hover { color: white; }

/* ── STEPS ────────────────────────────────────────── */
.rj-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}

.rj-step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.rj-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(49,184,152,0.08);
    color: var(--teal);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.rj-step h3 {
    font-family: var(--font-serif);
    font-size: var(--type-h3);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.rj-step p {
    font-size: var(--type-body);
    font-weight: 400;
    line-height: var(--lh-body);
    color: var(--text-medium);
}

.rj-step-connector {
    display: flex;
    align-items: center;
    padding-top: 14px;
    color: var(--muted);
    opacity: 0.4;
}

/* ── FORM LAYOUT ──────────────────────────────────── */
.rj-form-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

.rj-form-card {
    background: var(--card-bg);
    border: 1px solid rgba(26,36,32,0.06);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
}

.rj-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.rj-form-group {
    margin-bottom: 16px;
}
.rj-form-group label {
    display: block;
    font-size: var(--type-small);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.rj-form-group label .required { color: var(--teal); }

.rj-form-group input,
.rj-form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: var(--type-body);
    font-weight: 400;
    color: var(--text-dark);
    background: var(--off-white);
    border: 1.5px solid rgba(26,36,32,0.1);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.rj-form-group input:focus,
.rj-form-group select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(49,184,152,0.1);
}
.rj-form-group input.error,
.rj-form-group select.error {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}

.rj-form-error {
    font-size: var(--type-caption);
    color: #c0392b;
    margin-top: 4px;
    display: none;
}
.error + .rj-form-error { display: block; }

.rj-form-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: var(--type-body);
    font-weight: 400;
    margin-bottom: 20px;
}
.rj-form-alert.error-alert {
    background: rgba(192,57,43,0.06);
    color: #c0392b;
    border: 1px solid rgba(192,57,43,0.15);
}
.rj-form-alert a { color: var(--teal); }

.rj-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 20px 0 8px;
}
.rj-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--teal);
}
.rj-consent label {
    font-size: var(--type-caption);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-medium);
}

.rj-consent-error {
    font-size: var(--type-caption);
    color: #c0392b;
    margin-bottom: 16px;
    display: none;
}

.rj-submit-btn {
    width: 100%;
    padding: 15px 28px;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: var(--type-body);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 18px rgba(49,184,152,.25);
    transition: background .2s, transform .15s;
    margin-top: 8px;
}
.rj-submit-btn:hover { background: var(--teal-dim); transform: translateY(-1px); }
.rj-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.rj-submit-btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: rj-spin .6s linear infinite;
}
.rj-submit-btn.loading .spinner { display: block; }
@keyframes rj-spin { to { transform: rotate(360deg); } }

/* Form aside */
.rj-form-aside {
    padding-top: 8px;
}
.rj-aside-section { margin-bottom: 24px; }

.rj-aside-label {
    font-size: var(--type-caption);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
}

.rj-form-aside h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.rj-form-aside h3 em { color: var(--teal); font-style: italic; }

.rj-form-aside p {
    font-size: var(--type-body);
    font-weight: 400;
    line-height: var(--lh-body);
    color: var(--text-medium);
}

.rj-aside-phone {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--teal);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}
.rj-aside-phone:hover { color: var(--teal-dim); }

.rj-aside-divider {
    height: 1px;
    background: rgba(26,36,32,0.08);
    margin: 24px 0;
}

.rj-aside-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rj-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--type-small);
    font-weight: 400;
    color: var(--text-medium);
}
.rj-trust-item svg { color: var(--teal); flex-shrink: 0; }

/* ── REVEAL ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .28s; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
    .rj-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .rj-hero-proof { max-width: 400px; }
    .rj-new-grid { grid-template-columns: repeat(2, 1fr); }
    .rj-form-layout { grid-template-columns: 1fr; }
    .rj-form-aside { max-width: 560px; }
}

@media (max-width: 768px) {
    .rj-hero-inner { padding: 140px 24px 56px; }
    .rj-wrap { padding: 0 24px; }
    .rj-section { padding: 64px 0; }

    .rj-reasons-grid { grid-template-columns: 1fr; }
    .rj-new-grid { grid-template-columns: 1fr; }

    .rj-steps { flex-direction: column; align-items: center; }
    .rj-step-connector {
        transform: rotate(90deg);
        padding: 0;
    }

    .rj-form-row { grid-template-columns: 1fr; }
    .rj-form-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .rj-hero-inner { padding: 120px 20px 48px; }
    .rj-wrap { padding: 0 20px; }
    .rj-hero-ctas { flex-direction: column; }
    .rj-btn { justify-content: center; }
}
