/* Public marketing page styles. Pure CSS, no dependencies. Mobile-first. */

:root {
    --ld-bg: #f7f7f8;
    --ld-fg: #1a1a1a;
    --ld-muted: #555;
    --ld-card-bg: #ffffff;
    --ld-card-border: #e5e7eb;
    --ld-accent: #2f5fff;
    --ld-accent-fg: #ffffff;
    --ld-footer-fg: #777;
    --ld-link: #2f5fff;
    --ld-divider: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ld-bg: #0b132b;
        --ld-fg: #f1f1f1;
        --ld-muted: #b6bbc7;
        --ld-card-bg: #161f3a;
        --ld-card-border: #243056;
        --ld-accent: #6c8cff;
        --ld-accent-fg: #0b132b;
        --ld-footer-fg: #8d93a3;
        --ld-link: #8aa6ff;
        --ld-divider: #243056;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--ld-bg);
    color: var(--ld-fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: var(--ld-link);
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
}

.ld-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.ld-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--ld-divider);
    margin-bottom: 1.5rem;
}

.ld-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ld-tagline {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--ld-muted);
}

.ld-cta-wrap {
    margin: 1rem 0 0;
}

.ld-cta {
    display: inline-block;
    background: var(--ld-accent);
    color: var(--ld-accent-fg);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.ld-cta:hover, .ld-cta:focus {
    text-decoration: none;
    filter: brightness(1.08);
}

.ld-section {
    margin: 1.5rem 0;
}

.ld-section-heading {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.ld-prose {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ld-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .ld-section-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.ld-card {
    background: var(--ld-card-bg);
    border: 1px solid var(--ld-card-border);
    border-radius: 8px;
    padding: 1rem;
}

.ld-card-heading {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ld-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ld-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.ld-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.ld-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ld-accent);
}

.ld-stat-label {
    font-size: 0.9rem;
    color: var(--ld-muted);
    text-align: center;
}

.ld-socials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ld-social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--ld-card-border);
    border-radius: 999px;
    background: var(--ld-card-bg);
}

.ld-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ld-divider);
    text-align: center;
    font-size: 0.85rem;
    color: var(--ld-footer-fg);
}

.ld-footer-link {
    color: var(--ld-footer-fg);
}
