
    /* ============================================================
       Footer - Responsive (mobile-first)
       Breakpoint system (consistent everywhere):
         base   : mobile          (< 640px)
         640px  : large phones    (component/typography scale-up)
         768px  : tablets         (2-column grid)
         1024px : desktop         (4-column grid)
       ============================================================ */

    footer {
        position: relative;
        padding: 3rem 1.25rem;
        margin-top: 3rem;
    }

    @media (min-width: 768px) {
        footer {
            padding: 4rem 2rem;
            margin-top: 4rem;
        }
    }

    @media (min-width: 1024px) {
        footer {
            padding: 5rem 2.5rem;
            margin-top: 5rem;
        }
    }

    .footer-bg {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, var(--color-slate-50), white);
    }

    .footer-container {
        margin: 0 auto;
        max-width: 72rem;
        position: relative;
        z-index: 10;
    }

    /* ---------- Footer grid ---------- */

    /* Base / mobile: single stacked column */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    /* Resources + Company side by side on every stacked layout */
    .footer-links-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    @media (min-width: 640px) {
        .footer-grid {
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-links-row {
            gap: 2rem;
        }
    }

    /* Tablets (768px - 1023px): brand | newsletter on top, links full-width below */
    @media (min-width: 768px) and (max-width: 1023px) {
        .footer-grid {
            grid-template-columns: 1fr 1fr;
            gap: 2.5rem;
        }

        .brand-column {
            grid-column: 1 / 2;
            grid-row: 1;
        }

        .newsletter-column {
            grid-column: 2 / 3;
            grid-row: 1;
        }

        .links-wrapper {
            grid-column: 1 / -1;
            grid-row: 2;
            gap: 2.5rem;
        }
    }

    /* Desktop (1024px+): 4 columns in one row */
    @media (min-width: 1024px) {
        .footer-grid {
            grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
            gap: 2.5rem;
        }

        .links-wrapper {
            display: contents;
        }
    }

    /* ---------- Brand column ---------- */

    .brand-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        min-height: 44px;
        text-decoration: none;
    }

    .brand-logo {
        width: 2rem;
        height: 2.3rem;
        /* prevent CLS */
        display: block;
        flex-shrink: 0;
    }

    .brand-name {
        font-weight: 700;
        font-size: 1.125rem;
        letter-spacing: -0.025em;
        color: var(--color-slate-900);
    }

    .brand-name-light {
        font-weight: 400;
        color: var(--color-slate-500);
    }

    .brand-description {
        font-size: 0.75rem;
        line-height: 1.6;
        color: var(--color-slate-500);
        margin-bottom: 1rem;
        max-width: 20rem;
    }

    .social-links {
        display: flex;
        gap: 0.5rem;
    }

    @media (min-width: 640px) {
        .brand-link {
            margin-bottom: 1.5rem;
        }

        .brand-name {
            font-size: 1.25rem;
        }

        .brand-description {
            font-size: 0.875rem;
            margin-bottom: 1.5rem;
        }

        .social-links {
            gap: 0.75rem;
        }
    }

    /* ---------- Social icons ---------- */

    .social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.04);
        color: var(--ink-3);
        transition: all 0.3s ease;
        text-decoration: none;
        flex-shrink: 0;
    }

    .social-icon:hover {
        background: var(--ink);
        color: var(--paper);
        transform: translateY(-2px);
    }

    @media (min-width: 640px) {
        .social-icon {
            width: 44px;
            height: 44px;
        }
    }

    /* ---------- Link columns ---------- */

    .footer-link {
        color: var(--ink-3);
        text-decoration: none;
        transition: color 0.3s ease;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .footer-link:hover {
        color: var(--ink);
    }

    .footer-column h4,
    .footer-column h3 {
        color: var(--color-slate-900);
        font-weight: 700;
        margin-bottom: 1rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-column ul li {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }

    @media (min-width: 640px) {
        .footer-column h4,
    .footer-column h3 {
            margin-bottom: 1.25rem;
            font-size: 0.875rem;
        }

        .footer-column ul li {
            margin-bottom: 0.25rem;
            font-size: 0.875rem;
        }
    }

    /* ---------- Newsletter column ---------- */

    .newsletter-description {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        color: var(--color-slate-500);
    }

    .newsletter-form-wrapper {
        display: flex;
        flex-direction: column;
    }

    /* Stacked on mobile, joined pill from 640px up */
    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-checkboxes {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .newsletter-checkbox-label {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        min-height: 44px;
        font-size: 0.75rem;
        color: var(--color-slate-500);
        cursor: pointer;
        font-weight: 500;
    }

    .newsletter-checkbox-label input[type="checkbox"] {
        width: 14px;
        height: 14px;
        accent-color: var(--ink);
        cursor: pointer;
        margin: 0;
        flex-shrink: 0;
    }

    footer .glass-input {
        flex: 1;
        min-width: 0;
        width: 100%;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 50px;
        color: var(--ink-2);
        font-size: 13px;
        outline: none;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    footer .glass-input:focus {
        background: var(--paper);
        border-color: var(--ink);
    }

    footer .submit-btn {
        position: relative;
        min-height: 44px;
        padding: 12px 20px;
        background: linear-gradient(135deg, var(--ink), var(--ink-2));
        color: var(--paper);
        border: none;
        border-radius: 50px;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    footer .submit-btn:hover {
        box-shadow: 0 4px 15px rgba(22, 22, 22, 0.3);
        transform: translateY(-1px);
    }

    @media (min-width: 640px) {
        .newsletter-description {
            font-size: 0.875rem;
            margin-bottom: 1rem;
        }

        .newsletter-form {
            flex-direction: row;
            gap: 0;
        }

        .newsletter-checkboxes {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .newsletter-checkbox-label {
            font-size: 0.8125rem;
        }

        footer .glass-input {
            width: auto;
            padding: 14px 20px;
            font-size: 14px;
            border-radius: 50px 0 0 50px;
        }

        footer .submit-btn {
            padding: 14px 28px;
            font-size: 14px;
            border-radius: 0 50px 50px 0;
        }
    }

    /* Submit button loading spinner */
    .submit-btn.is-loading {
        color: transparent;
        pointer-events: none;
    }

    .submit-btn.is-loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 14px;
        margin: -7px 0 0 -7px;
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-top-color: var(--paper);
        border-radius: 50%;
        animation: btn-spin 0.6s linear infinite;
    }

    @keyframes btn-spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* ---------- Glass card ---------- */

    .glass-card {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .glass-card:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-4px);
        box-shadow: 0 15px 30px -10px rgba(22, 22, 22, 0.15);
        border-color: rgba(22, 22, 22, 0.3);
    }

    /* ---------- Disclaimer card ---------- */

    .disclaimer-card {
        border-radius: 0.75rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .disclaimer-title {
        color: var(--color-slate-600);
        display: block;
        margin-bottom: 0.375rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .disclaimer-text {
        font-size: 0.75rem;
        line-height: 1.6;
        color: rgba(100, 116, 139, 0.8);
    }

    @media (min-width: 640px) {
        .disclaimer-card {
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }

        .disclaimer-title {
            margin-bottom: 0.5rem;
            font-size: 0.75rem;
        }

        .disclaimer-text {
            font-size: 0.75rem;
        }
    }

    /* ---------- Footer bottom bar ---------- */

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        font-size: 0.75rem;
        font-weight: 500;
        color: rgba(100, 116, 139, 0.8);
        padding-top: 1.5rem;
        border-top: 1px solid var(--color-slate-200);
    }

    @media (min-width: 640px) {
        .footer-bottom {
            flex-direction: row;
            justify-content: space-between;
            text-align: left;
            font-size: 0.75rem;
            padding-top: 2rem;
        }
    }

    .footer-bottom-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .live-indicator {
        width: 6px;
        height: 6px;
        background: var(--color-primary);
        border-radius: 50%;
        animation: live-pulse 2s infinite;
        flex-shrink: 0;
    }

    @media (min-width: 640px) {
        .live-indicator {
            width: 8px;
            height: 8px;
        }
    }

    @keyframes live-pulse {
        0%,
        100% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: 0.5;
            transform: scale(0.9);
        }
    }

    /* Honeypot field and subscribe message: both were inline styles in footer.php.
       The message keeps display:none here; footer-1.js still sets display and colour
       inline when it has something to say. */
    .footer-honeypot {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    #subscribe-msg {
        font-size: 12px;
        margin-top: 8px;
        font-weight: 500;
        display: none;
    }
