/* ============================================================
   Shared site footer — single source of truth.

   Every page links this file; no page should carry its own copy
   of these rules in an inline <style>. The markup that goes with
   it is generated by tools/sync_footer.py.
   ============================================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 80px 24px 40px;
    background: var(--bg-primary);
}
.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 64px;
    margin-bottom: 64px;
}
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}
.footer-logo img {
    height: 34px;
    width: auto;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 280px;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 400;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 24px;
    padding-right: 24px;
}
.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 400;
}

/* App store buttons */
.footer-store {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 100px;
    background: #fff;
    color: #0A0A0A;
    border: 2px solid #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
    transition: opacity 0.15s ease;
}
.store-btn:hover { opacity: 0.85; }
.store-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Light theme */
[data-theme="light"] .footer { background: var(--bg-primary); }
[data-theme="light"] .footer-col a:hover { color: var(--text-primary); }
[data-theme="light"] .store-btn {
    background: #1A1A1A;
    color: #F4F4F4;
    border-color: #1A1A1A;
}

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 480px) {
    .footer-links { grid-template-columns: 1fr 1fr; }
}
