/* ═══════════════════════════════════════════════════════════════════
   Public footer: "Where is your money leaking?" + your number + site map.
   Markup: templates/marketing/_footer.html; number: js/footer-number.js.
   An ink band in both themes, so every page ends on the same firm ground.
   ═══════════════════════════════════════════════════════════════════ */

.m-footer.pf {
    --pf-ink: rgb(11, 11, 18);
    --pf-line: rgba(255, 255, 255, .09);
    --pf-text: rgba(255, 255, 255, .72);
    --pf-muted: rgba(255, 255, 255, .5);
    margin-top: 0;
    padding: 0;
    border-top: 0;
    background:
        radial-gradient(900px 420px at 85% 0%, rgba(99, 102, 241, .16), transparent 60%),
        var(--pf-ink);
    color: var(--pf-text);
}
/* Icons render once the page's Lucide script runs; until then (or on a page without it) nothing shows. */
.pf i[data-lucide] { display: none; }

/* ── Lead: the leaks and the number ─────────────────────── */
.pf-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
    gap: 56px;
    align-items: start;
    padding-top: 84px;
    padding-bottom: 64px;
}
.pf-eyebrow {
    font: 700 11px/1 var(--cf-font);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pf-muted);
}
.pf-title {
    margin: 12px 0 26px;
    font: 600 44px/1.05 var(--font-display, var(--cf-font));
    letter-spacing: -.025em;
    color: rgb(255, 255, 255);
}

.pf-leak-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pf-line);
}
.pf-leak {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "quote links" "name links";
    gap: 5px 28px;
    padding: 18px 0;
    border-bottom: 1px solid var(--pf-line);
}
.pf-leak__quote {
    grid-area: quote;
    font: italic 400 21px/1.3 "Source Serif 4", Georgia, serif;
    color: rgb(255, 255, 255);
    transition: color .2s ease;
}
.pf-leak:hover .pf-leak__quote { color: rgb(199, 210, 254); }
.pf-leak__name {
    grid-area: name;
    font: 400 13px/1.4 var(--cf-font);
    color: var(--pf-muted);
}
.pf-leak__links {
    grid-area: links;
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.pf-leak__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    font: 500 12.5px/1 var(--cf-font);
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pf-leak__links a svg { width: 14px; height: 14px; opacity: .8; }
.pf-leak__links a:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .32);
    color: rgb(255, 255, 255);
}

/* ── Your number ────────────────────────────────────────── */
.pf-number {
    position: relative;
    padding: 28px 28px 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .24), transparent 55%),
        var(--gradient-brand, var(--color-brand));
    color: rgb(255, 255, 255);
    box-shadow: 0 40px 90px -40px rgba(99, 102, 241, .75);
}
.pf-number__eyebrow {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font: 700 10.5px/1 var(--cf-font);
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}
.pf-number.is-mine .pf-number__eyebrow { background: rgb(255, 255, 255); color: var(--color-brand); }
.pf-number__lead {
    margin: 16px 0 2px;
    font: 400 15px/1.4 var(--cf-font);
    color: rgba(255, 255, 255, .88);
}
.pf-number__total {
    display: block;
    margin: 4px 0 18px;
    font: 600 64px/1 var(--font-display, var(--cf-font));
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    color: rgb(255, 255, 255);
}
.pf-number__sum {
    border-radius: 12px;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 255, 255, .18);
    overflow: hidden;
}
.pf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    font: 400 13px/1.3 var(--cf-font);
    color: rgba(255, 255, 255, .82);
    cursor: text;
    transition: background .15s ease;
}
.pf-row + .pf-row { border-top: 1px dashed rgba(255, 255, 255, .18); }
.pf-row b { font-weight: 400; color: rgba(255, 255, 255, .55); margin-right: 2px; }
.pf-row:focus-within { background: rgba(0, 0, 0, .18); }
.pf-row__val {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
    font-weight: 600;
    color: rgb(255, 255, 255);
}
.pf-row input {
    width: 5ch;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    font: 700 16px/1 var(--font-mono, ui-monospace, monospace);
    color: rgb(255, 255, 255);
    text-align: right;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.pf-row input:focus { border-bottom-color: rgb(255, 255, 255); }
.pf-row input::-webkit-outer-spin-button,
.pf-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pf-number__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding: 15px 18px;
    border-radius: 12px;
    background: rgb(255, 255, 255);
    font: 700 15px/1.2 var(--cf-font);
    color: var(--color-brand);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pf-number__cta svg { width: 17px; height: 17px; flex-shrink: 0; }
.pf-number__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); }
.pf-number__fine {
    margin: 12px 0 0;
    font: 400 12px/1.45 var(--cf-font);
    color: rgba(255, 255, 255, .72);
}

/* ── Site map ───────────────────────────────────────────── */
.pf-map {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 40px;
    border-top: 1px solid var(--pf-line);
}
.pf-map__brand strong {
    font: 600 18px/1.2 var(--font-display, var(--cf-font));
    color: rgb(255, 255, 255);
}
.pf .m-footer__tag { margin: 8px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--pf-muted); }
.pf-map__trial {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 9px;
    background: rgb(255, 255, 255);
    font: 700 13px/1 var(--cf-font);
    color: var(--pf-ink);
    text-decoration: none;
}
.pf-map__trial:hover { background: rgb(224, 231, 255); }
.pf-map__signin {
    margin-left: 12px;
    font: 500 13px/1 var(--cf-font);
    color: var(--pf-text);
    text-decoration: none;
}
.pf-map__signin:hover { color: rgb(255, 255, 255); }
.pf-map__group h3 {
    margin: 0 0 14px;
    font: 700 11px/1 var(--cf-font);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pf-muted);
}
.pf-map__group a {
    display: block;
    margin-bottom: 9px;
    font: 400 13.5px/1.35 var(--cf-font);
    color: var(--pf-text);
    text-decoration: none;
}
.pf-map__group a:hover { color: rgb(255, 255, 255); }

/* ── Bottom line ────────────────────────────────────────── */
.pf .pf-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid var(--pf-line);
    font: 400 12.5px/1.4 var(--cf-font);
    color: var(--pf-muted);
}
.pf-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pf-text);
    text-decoration: none;
}
.pf-pulse:hover { color: rgb(255, 255, 255); }
.pf-pulse__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(52, 211, 153);
    flex-shrink: 0;
}

/* ── Smaller screens ────────────────────────────────────── */
@media (max-width: 980px) {
    .pf-lead { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 64px; }
    .pf-title { font-size: 36px; }
    .pf-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-map__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .pf-lead { padding-top: 52px; padding-bottom: 44px; }
    .pf-title { font-size: 30px; margin-bottom: 18px; }
    .pf-leak { grid-template-columns: minmax(0, 1fr); grid-template-areas: "quote" "name" "links"; }
    .pf-leak__quote { font-size: 18.5px; }
    .pf-leak__links { justify-content: flex-start; margin-top: 6px; }
    .pf-number { padding: 22px 20px 20px; }
    .pf-number__total { font-size: 52px; }
    /* The map collapses to short wrapped rows instead of a 1,000px column. */
    .pf-map { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 32px; }
    .pf-map__group { display: flex; flex-wrap: wrap; gap: 8px 16px; }
    .pf-map__group h3 { flex-basis: 100%; margin-bottom: 4px; }
    .pf-map__group a { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-number__cta, .pf-leak__quote, .pf-leak__links a { transition: none; }
}
