/* Resistro footer — shared across all marketing pages.
   Depends on CSS custom properties from each page (--bg, --bg-card,
   --border, --text, --text-dim, --text-bright, --accent, --accent-dim,
   --accent-glow, --font-mono, --font-sans). The markup is kept inline
   in each .html file (no FOUC, no JS dependency); this file owns the
   layout, the sync-script (tools/sync-footer.sh) owns the markup. */

footer.site-footer {
    border-top: 1px solid var(--border);
    background:
        linear-gradient(180deg, transparent, rgba(34, 197, 94, 0.02)),
        var(--bg);
    padding: 3.5rem 2rem 2rem;
    text-align: left;
    position: relative;
}

footer.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: min(280px, 60%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-footer__brand .brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text-bright);
}

.site-footer__brand .brand-lockup img {
    height: 26px;
    width: auto;
    display: block;
}

.site-footer__brand .brand-lockup .brand-word {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--text-bright);
}

.site-footer__brand p {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-dim);
    max-width: 32ch;
    margin: 0;
}

.site-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    width: fit-content;
    transition: border-color 0.2s, color 0.2s;
}

.site-footer__status:hover {
    color: var(--text-bright);
    border-color: rgba(34, 197, 94, 0.35);
}

.site-footer__status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: site-footer-pulse 2.4s ease-out infinite;
}

@keyframes site-footer-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.site-footer__col h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-bright);
    margin: 0 0 0.85rem;
    font-weight: 600;
}

.site-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.4;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    transition: color 0.18s, transform 0.18s;
}

.site-footer__col a:hover {
    color: var(--text-bright);
    transform: translateX(2px);
}

.site-footer__col a:focus-visible {
    color: var(--text-bright);
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.site-footer__col a .ext {
    font-size: 0.62rem;
    color: var(--text-dim);
    opacity: 0.55;
    letter-spacing: 0.05em;
}

.site-footer__bottom {
    max-width: 1180px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.site-footer__bottom .copy {
    letter-spacing: 0.02em;
}

.site-footer__bottom .meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.site-footer__bottom .meta a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.18s;
}

.site-footer__bottom .meta a:hover { color: var(--text-bright); }

.site-footer__bottom .lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.site-footer__bottom .lang-switch .sep {
    opacity: 0.4;
}

.site-footer__bottom .lang-switch a[aria-current="true"] {
    color: var(--accent);
}

@media (max-width: 1024px) {
    footer.site-footer { padding: 3rem 1.5rem 1.75rem; }
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .site-footer__brand { grid-column: span 2; }
}

@media (max-width: 600px) {
    footer.site-footer { padding: 2.5rem 1.25rem 1.5rem; }
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .site-footer__brand { grid-column: auto; }
    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
}
