/* ============================================================
   haru-footer.css — light, compact Haru footer.

   Shared by the landing (injected via scripts/rewrite_links.py)
   and every standalone page (/demo, /assessment, legal).
   Styles scoped to `.haru-footer` so nothing bleeds onto the
   host page.

   Design direction (per Docs/NARRATIVE.md):
     - Soft, alive, grounded. Not loud.
     - Cream/off-white surface. Sage accents only.
     - Uses the same Satoshi + Instrument Serif italic sage
       treatment as the landing's headings, so the tagline
       reads as the brand's voice, not a footer label.
   ============================================================ */

.haru-footer {
    position: relative;
    background:
        radial-gradient(ellipse 900px 480px at 8% -15%,
            rgba(169, 217, 177, 0.05), transparent 62%),
        radial-gradient(ellipse 700px 380px at 96% 110%,
            rgba(129, 166, 152, 0.04), transparent 65%),
        linear-gradient(180deg, #1d1d1d 0%, #161616 100%);
    color: #e8eee3;
    font-family: inherit;
    padding: 56px var(--page-px, 40px) 28px;
    isolation: isolate;
}

/* Hairline top edge with a sage wash — picks up the landing's
   divider language without a hard line. */
.haru-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(169, 217, 177, 0.3) 50%,
        transparent 100%);
    pointer-events: none;
}

.haru-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* Top row: brand block + primary nav -------------------------- */

.haru-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
    padding-bottom: 28px;
}

.haru-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.haru-footer__mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    line-height: 0;
}
.haru-footer__mark img {
    height: 22px;
    width: auto;
    display: block;
    /* Logo PNG is black-on-transparent; invert to white for the dark footer. */
    filter: brightness(0) invert(1);
}

.haru-footer__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a9d9b1;            /* mint reads brighter on dark than sage */
    box-shadow: 0 0 12px rgba(169, 217, 177, 0.6);
    animation: haru-breathe 3.8s ease-in-out infinite;
    flex-shrink: 0;
}

.haru-footer__tagline {
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.3;
    color: #a9d9b1;                 /* mint — same italic-accent moment as landing, lifted for dark */
}

.haru-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    justify-content: flex-end;
}

.haru-footer__nav a {
    position: relative;
    display: inline-block;
    padding: 2px 0;
    color: #d8dcd5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color .2s ease;
}
.haru-footer__nav a:hover { color: #ffffff; }

.haru-footer__nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.haru-footer__nav a:hover::after { transform: scaleX(1); }

/* Thin divider + meta row ------------------------------------- */

.haru-footer__divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(255, 255, 255, 0.08) 15%, rgba(255, 255, 255, 0.08) 85%, transparent);
    margin: 0 0 20px;
}

.haru-footer__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #6f736b;
}

.haru-footer__legal {
    display: flex;
    align-items: center;
    gap: 16px;
}
.haru-footer__legal a {
    color: #9a9e95;
    text-decoration: none;
    transition: color .2s ease;
}
.haru-footer__legal a:hover { color: #e8eee3; }

.haru-footer__meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.haru-footer__social {
    display: flex;
    gap: 14px;
}
.haru-footer__social a {
    color: #9a9e95;
    text-decoration: none;
    transition: color .2s ease;
}
.haru-footer__social a:hover { color: #e8eee3; }

.haru-footer__lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.haru-footer__lang button {
    background: none;
    border: none;
    color: #9a9e95;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .2s ease, background-color .2s ease;
}
.haru-footer__lang button:hover                 { color: #e8eee3; background: rgba(255, 255, 255, 0.04); }
.haru-footer__lang button[aria-current="true"]  { color: #e8eee3; }
.haru-footer__lang span { color: #3a3a3a; }

/* Motion ------------------------------------------------------ */

@keyframes haru-breathe {
    0%, 100% { transform: scale(1);   opacity: .7; box-shadow: 0 0 6px  rgba(169, 217, 177, 0.35); }
    50%      { transform: scale(1.3); opacity: 1;  box-shadow: 0 0 14px rgba(169, 217, 177, 0.65); }
}

/* Responsive -------------------------------------------------- */

@media (max-width: 720px) {
    .haru-footer { padding: 40px var(--page-px, 24px) 24px; }
    .haru-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding-bottom: 24px;
    }
    .haru-footer__nav { justify-content: flex-start; }
    .haru-footer__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .haru-footer *,
    .haru-footer *::after {
        animation: none !important;
        transition: none !important;
    }
}
