/* Home page: hero, live counter, how-it-works. */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 40px;
    text-align: center;
}

.hero-title {
    max-width: 560px;
    font-size: clamp(30px, 5.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.hero-lead {
    max-width: 440px;
    color: var(--text-secondary);
    font-size: 15px;
    text-wrap: balance;
}

/* Live counter (class names are referenced by the SSE script) */
.email-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px 0 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
}

.email-count-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 3px var(--live-soft);
    animation: live-dot 2.4s ease-in-out infinite;
}

.email-count-number {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.email-count-pill--pulse .email-count-number {
    animation: email-count-pulse 560ms ease-out;
}

@keyframes live-dot {
    50% { box-shadow: 0 0 0 6px transparent; }
}

@keyframes email-count-pulse {
    0% { color: var(--live); }
    100% { color: var(--text-primary); }
}

/* How it works */
.steps__title {
    margin-bottom: 12px;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.steps ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    border-top: 1px solid var(--border-subtle);
}

.steps li {
    counter-increment: step;
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 21px;
}

@media (max-width: 640px) {
    .hero {
        padding-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .email-count-pill::before,
    .email-count-pill--pulse .email-count-number {
        animation: none;
    }
}
