/* /earn — Creator Rewards waitlist */
.earn {
    max-width: 880px;
    margin: 7rem auto 4rem;
    padding: 0 16px;
}

.earn-hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.earn-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #047857;
    background: #ecfdf5;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin: 0 0 1.25rem;
}

.earn-title {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.earn-lead {
    max-width: 620px;
    margin: 0 auto 1.75rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5563;
}

.earn-count { margin: 1rem 0 0; color: #4b5563; }

.earn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0 1.4rem;
    border-radius: 999px;
    border: 1px solid #111827;
    background: #fff;
    color: #111827;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.earn-btn--primary { background: #111827; color: #fff; }
.earn-btn--primary:hover { background: #000; color: #fff; }
.earn-btn:focus-visible,
.earn-form input:focus-visible,
.earn-faq summary:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }

.earn-section { margin: 3rem 0; }

.earn-h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.earn-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.earn-step {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    padding: 1.25rem;
}

.earn-step h3 { font-size: 1.05rem; font-weight: 700; margin: 0.75rem 0 0.35rem; }
.earn-step p { margin: 0; color: #4b5563; font-size: 0.92rem; line-height: 1.5; }

.earn-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.earn-founding {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.earn-founding > i { font-size: 1.6rem; color: #b45309; margin-top: 0.2rem; }
.earn-founding .earn-h2 { margin-bottom: 0.35rem; }
.earn-founding p { margin: 0; color: #4b5563; }

.earn-card {
    margin: 2rem 0;
    padding: 1.75rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.earn-muted { color: #6b7280; }
.earn-small { font-size: 0.85rem; }
.earn-center { text-align: center; }

.earn-form label,
.earn-invite label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.earn-form__row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.earn-form__row input {
    flex: 1 1 240px;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font: inherit;
    min-width: 0;
}

.earn-success {
    color: #047857;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.earn-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    font-size: 0.85rem;
}

.earn-invite { margin-top: 1.25rem; }

.earn-survey fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.earn-survey legend { font-weight: 700; margin-bottom: 0.5rem; font-size: 1rem; }

.earn-choice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0 0.9rem;
    margin-bottom: 0.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
}

.earn-choice:has(input:checked) { border-color: #111827; background: #f9fafb; }
.earn-choice input { width: 18px; height: 18px; accent-color: #111827; }

.earn-faq {
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding: 0.25rem 0;
}

.earn-faq summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.earn-faq p { margin: 0 0 1rem; color: #4b5563; line-height: 1.6; }

/* Small "Earn" banners elsewhere on the site */
.earn-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.92rem;
}

.earn-banner[hidden] { display: none; }

/* On the post page right after publishing, above the post header. */
.earn-banner--publish {
    width: min(900px, calc(100% - 32px));
    margin: 6.5rem auto -5rem;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

.earn-banner a.earn-banner__cta { font-weight: 700; color: #065f46; }
.earn-banner__close {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: inherit;
    border-radius: 8px;
    cursor: pointer;
}

.earn-banner__close:hover { background: rgba(6, 95, 70, 0.08); }

@media (max-width: 560px) {
    .earn { margin-top: 6rem; }
    .earn-card { padding: 1.25rem; }
    .earn-form__row .earn-btn { flex: 1 1 auto; }
}

/* In the home feed header (a wrapping flex row): a full line of its own. */
.feed-hero .earn-banner,
.feed-hero .feed-rising {
    flex: 1 0 100%;
    box-sizing: border-box;
}
