/* Shared frame values keep the footer aligned with the header. */
footer.footer {
    --footer-accent: #f2c8c2;
    width: calc(100% - (var(--site-frame-margin, clamp(6px, 2vw, 14px)) * 2));
    margin: var(--site-frame-margin, clamp(6px, 2vw, 14px)) auto;
    border-radius: var(--site-frame-radius, 20px);
    padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 56px) 24px;
    background: #000;
    color: #fff;
    font-family: 'Albert Sans', sans-serif;
    overflow: hidden;
}
.footer .footer-newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 32px 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 32px;
    text-align: left;
}
.footer .footer-newsletter h2 {
    margin: 0 0 12px;
    color: var(--footer-accent);
    font: 600 clamp(28px, 3vw, 40px)/1.1 'Sofia Sans', sans-serif;
    text-wrap: balance;
}
.footer .footer-newsletter-copy p {
    max-width: 380px;
    margin: 0;
    color: #fff;
    font: 400 17px/1.6 'Albert Sans', sans-serif;
}
.footer-newsletter-form { min-width: 0; }
.footer-newsletter-form > label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}
.footer-newsletter-fields { display: flex; gap: 10px; }
.footer .footer-newsletter-fields input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #777;
    border-radius: 8px;
    background: #171717;
    color: #fff;
    font: 400 16px/1.4 'Albert Sans', sans-serif;
}
.footer-newsletter-fields input::placeholder { color: #aaa; }
.footer .footer-newsletter-fields button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-shrink: 0;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--footer-accent);
    color: #000;
    font: 600 16px/1.4 'Albert Sans', sans-serif;
    cursor: pointer;
    transition: background-color .2s ease;
}
.footer-newsletter-fields button:hover { background: #fff; }
.footer-newsletter-fields button:disabled { opacity: .65; cursor: wait; }
.footer :is(input, button, a):focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 4px; }
.footer .footer-newsletter-note {
    margin: 12px 0 0;
    color: #bcbcbc;
    font: 400 12px/1.6 'Albert Sans', sans-serif;
}
.footer-newsletter-note a { color: inherit; text-underline-offset: 3px; }
.footer .footer-newsletter-status {
    margin: 10px 0 0;
    color: var(--footer-accent);
    font: 400 14px/1.5 'Albert Sans', sans-serif;
}
.footer-newsletter-status:empty { display: none; }
.footer-newsletter-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer .prefooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid #333;
    background: transparent;
    text-align: left;
}
.footer .prefooter p { width: auto; margin: 0; font-size: 18px; line-height: 1.5; }
.footer .prefooter-apps { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.footer .prefooter img { display: block; width: 140px; max-width: 100%; margin: 0; }
.footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #333;
}
.footer .footer-links { display: flex; flex-wrap: wrap; flex-direction: row; gap: 8px 24px; margin: 0; padding: 0; list-style: none; text-align: left; }
.footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 14px; line-height: 1.5; text-decoration: none; }
.footer .footer-links a:hover { color: var(--footer-accent); }
.footer .footer-logo img { max-width: 160px !important; height: auto; }
.footer .footer-logo p { margin: 8px 0 0; color: #fff; font-size: 12px; line-height: 1.5; }
@media (max-width: 760px) {
    .footer .footer-newsletter { grid-template-columns: 1fr; gap: 24px; }
    .footer .prefooter, .footer .footer-content { flex-direction: column; align-items: flex-start; }
    .footer .footer-logo { text-align: left; }
    .footer .prefooter-apps { flex-shrink: 1; }
}
@media (max-width: 420px) {
    .footer-newsletter-fields { flex-direction: column; }
    .footer-newsletter-fields button { width: 100%; }
    .footer .prefooter-apps { flex-wrap: nowrap; width: 100%; }
    .footer .prefooter-apps a { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .footer-newsletter-fields button { transition: none; }
}
/* The header uses a tighter, fixed frame on small screens. */
@media (max-width: 768px) {
    footer.footer {
        width: calc(100% - 24px);
        margin: 12px auto;
        border-radius: 14px;
    }
}
