/* ============================================================
   playbooks.css — /playbooks index + landing
   ============================================================
   Brand tokens (sourced from homepage-v7.css):
     --parchment, --paper, --paper-warm, --ink, --ink-2, --ink-3,
     --forest, --forest-mid, --forest-dk, --forest-light,
     --sienna, --sienna-dk, --gold, --serif, --sans
   Prefix: pb-
   Loaded AFTER main.css and nav-v7.css.
   ============================================================ */

/* ───── Reset within page scope ────────────────────────────────────────────
   IMPORTANT: every reset rule is wrapped in :where() so it has ZERO
   specificity. This lets every single-class .pb-* component rule below
   override the reset cleanly without specificity gymnastics.
   Fix: 2026-04-26 (audit caught CTAs rendering forest-mid on forest-dk +
   tile/card titles losing their margin-bottom because `.pb-page h3` was
   silently winning over `.pb-tile__title`).
   ─────────────────────────────────────────────────────────────────────── */
.pb-page *, .pb-page *::before, .pb-page *::after {
    box-sizing: border-box;
}
.pb-page {
    background: var(--parchment, #FAF7F2);
    color: var(--ink-2, #57534E);
    font-family: var(--sans, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* CRITICAL — main.css's `body { overflow-x: hidden }` auto-promotes
       `overflow-y` to `auto` per W3C spec, which makes BODY a scroll
       container and BREAKS `position: sticky` on `.pb-filter-bar`.
       Override to `visible` so html (the document scroller) is the
       sticky containing block instead. Combined with explicit max-width
       to keep the original horizontal-overflow protection.
       Caught by Lens 2 visual QA, Apr 26 2026. */
    overflow-x: clip;
    overflow-y: visible;
    max-width: 100vw;
}
.pb-page :where(h1, h2, h3, h4) {
    font-family: var(--serif, 'Fraunces', Georgia, serif);
    color: var(--ink, #1C1917);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 500;
}
.pb-page :where(p) { margin: 0; }
.pb-page :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
/* Scope link-color reset to <main> only — keep nav untouched so its native
   `.btn-primary` / `.btn-ghost` / `.nav__link` colours from nav-v7.css apply.
   Both `main` and `a` go inside :where() so the matched portion is
   0-specificity, letting any `.pb-cta--*` class win cleanly. */
.pb-page :where(main a) {
    color: var(--forest-mid, #2D6A4F);
    text-decoration: none;
    transition: color .15s ease;
}
.pb-page :where(main a):hover { color: var(--sienna, #C4532B); }

/* Skip below the fixed nav */
.pb-page main { padding-top: 56px; }

/* Section scroll anchors clear the fixed nav */
.pb-page section { scroll-margin-top: 80px; }
#pb-index { scroll-margin-top: 60px; }

/* ============================================================
   HERO
   ============================================================ */
.pb-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 24px 80px;
    background: linear-gradient(180deg, #FFF9F0 0%, #FAF7F2 100%);
    border-bottom: 1px solid rgba(28,25,23,.06);
}

/* Subtle radial accent */
.pb-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(196,83,43,.05) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(45,106,79,.06) 0%, transparent 70%);
}

.pb-hero__inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.pb-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(196,83,43,.10);
    color: var(--sienna-dk, #A3401F);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
}

.pb-hero__headline {
    font-size: clamp(36px, 5.5vw, 60px);
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--ink, #1C1917);
}
.pb-hero__headline em {
    font-style: italic;
    color: var(--sienna, #C4532B);
    font-weight: 400;
}
.pb-hero__price {
    display: block;
    margin-top: 8px;
    font-size: clamp(28px, 4vw, 44px);
    color: var(--forest-dk, #143728);
    font-weight: 500;
}

.pb-hero__sub {
    font-size: clamp(17px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--ink-2, #57534E);
    max-width: 680px;
    margin: 0 auto 40px;
}
.pb-hero__sub strong {
    color: var(--ink, #1C1917);
    font-weight: 600;
}

.pb-hero__ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.pb-trust {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.pb-trust__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--forest-mid, #2D6A4F);
}
.pb-trust__pill svg {
    color: var(--forest-mid, #2D6A4F);
}

/* ============================================================
   CTA BUTTONS — shared
   ============================================================ */
.pb-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: var(--sans, system-ui, sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s cubic-bezier(.4,0,.2,1), background .18s ease, color .18s ease;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.pb-cta--primary {
    background: var(--forest-dk, #143728);
    color: #fff;
    box-shadow: 0 4px 14px rgba(20,55,40,.20), inset 0 -1px 0 rgba(0,0,0,.10);
}
.pb-cta--primary:hover {
    background: var(--forest, #1B4332);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(20,55,40,.28), inset 0 -1px 0 rgba(0,0,0,.10);
}
.pb-cta--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(20,55,40,.20);
}

.pb-cta--ghost {
    background: transparent;
    color: var(--forest-dk, #143728);
    border: 1.5px solid rgba(20,55,40,.20);
}
.pb-cta--ghost:hover {
    background: rgba(20,55,40,.04);
    color: var(--forest-dk, #143728);
    border-color: rgba(20,55,40,.40);
}

.pb-cta--ghost-inverted {
    color: #fff;
    border-color: rgba(255,255,255,.40);
}
.pb-cta--ghost-inverted:hover {
    color: #fff;
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.70);
}

.pb-cta--lg {
    padding: 18px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.pb-cta--full {
    display: flex;
    width: 100%;
}

/* Sienna unlock CTA — used inside grant cards */
.pb-cta--unlock {
    background: var(--sienna, #C4532B);
    color: #fff;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(196,83,43,.20), inset 0 -1px 0 rgba(0,0,0,.08);
}
.pb-cta--unlock:hover {
    background: var(--sienna-dk, #A3401F);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(196,83,43,.28);
}
.pb-cta--unlock:active {
    transform: translateY(0);
}
.pb-cta--unlock svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.pb-section__head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}
.pb-section__head--centered { text-align: center; }
.pb-section__head--inline {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 24px;
}
.pb-section__head--inline .pb-h2 { margin-bottom: 6px; }

.pb-section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    /* sienna-dk for WCAG AA compliance on parchment (5.1+ vs 4.25 with sienna) */
    color: var(--sienna-dk, #A3401F);
    margin-bottom: 12px;
}
.pb-section__eyebrow--inverted {
    color: rgba(255,255,255,.85);
}

.pb-h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.15;
    color: var(--ink, #1C1917);
    margin-bottom: 14px;
}
.pb-h2 em {
    font-style: italic;
    color: var(--sienna, #C4532B);
    font-weight: 400;
}
.pb-page .pb-h2--inverted,
.pb-page h2.pb-h2--inverted {
    color: #fff;
}
.pb-h2__sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2, #57534E);
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================================
   DELIVERABLES SECTION
   ============================================================ */
.pb-deliverables {
    padding: 96px 24px;
    background: var(--paper-warm, #FFF9F0);
    border-bottom: 1px solid rgba(28,25,23,.06);
}

.pb-deliverables__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

.pb-tile {
    background: #fff;
    padding: 32px 28px;
    border-radius: 14px;
    border: 1px solid rgba(28,25,23,.06);
    box-shadow: 0 1px 3px rgba(28,25,23,.04);
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1);
}
.pb-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28,25,23,.08);
}

.pb-tile__num {
    font-family: var(--serif, Georgia, serif);
    font-style: italic;
    font-size: 14px;
    font-weight: 500;
    color: var(--sienna, #C4532B);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.pb-tile__title {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--ink, #1C1917);
    font-weight: 500;
}

.pb-tile__body {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2, #57534E);
}
.pb-tile__body strong { color: var(--ink, #1C1917); font-weight: 600; }

/* Special: 30-day guarantee tile */
.pb-tile--guarantee {
    background: linear-gradient(135deg, rgba(45,106,79,.08) 0%, rgba(45,106,79,.04) 100%);
    border-color: rgba(45,106,79,.18);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.pb-tile__seal {
    color: var(--forest-mid, #2D6A4F);
    margin-bottom: 14px;
}
.pb-tile--guarantee .pb-tile__title {
    color: var(--forest-dk, #143728);
}
.pb-tile--guarantee a {
    color: var(--forest-mid, #2D6A4F);
    border-bottom: 1px solid rgba(45,106,79,.30);
}

/* ============================================================
   PERSONALIZED SECTION
   ============================================================ */
.pb-personalized {
    padding: 80px 24px 64px;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(184,134,11,.08) 0%, transparent 70%),
        var(--parchment, #FAF7F2);
    border-bottom: 1px solid rgba(28,25,23,.06);
}
.pb-personalized .pb-section__eyebrow {
    /* darker gold for AA contrast on parchment (was #B8860B at 2.54:1) */
    color: #6B4F08;
}

.pb-personalized__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

.pb-personalized__hint {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--ink-3, #A8A29E);
    font-style: italic;
}

/* Personalized cards inherit grant-card styling but with gold accent */
.pb-grant-card--featured {
    border-color: rgba(184,134,11,.35);
    background: linear-gradient(180deg, #fff 0%, rgba(184,134,11,.02) 100%);
    box-shadow: 0 4px 18px rgba(184,134,11,.08);
    position: relative;
    overflow: hidden;
}
.pb-grant-card--featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold, #B8860B) 0%, transparent 100%);
}
.pb-grant-card--featured .pb-grant-card__match {
    background: rgba(184,134,11,.18);
    /* darker gold for AA contrast (was #B8860B at 2.54:1) */
    color: #6B4F08;
}

/* ============================================================
   INDEX SECTION + FILTER BAR
   ============================================================ */
.pb-index {
    padding: 80px 0 96px;
    background: var(--parchment, #FAF7F2);
}

.pb-tip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-2, #57534E);
}
.pb-tip svg { color: var(--ink-2, #57534E); flex-shrink: 0; }
.pb-tip strong { color: var(--ink, #1C1917); font-weight: 600; }
/* No keyboard shortcut on touch devices — hide the ⌘-click tip on mobile */
@media (max-width: 720px) {
    .pb-tip { display: none; }
}

/* Filter bar — sticky */
.pb-filter-bar {
    position: sticky;
    top: 56px;
    z-index: 20;
    background: rgba(250,247,242,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(28,25,23,.06);
    border-bottom: 1px solid rgba(28,25,23,.06);
    padding: 14px 24px;
    margin-bottom: 32px;
}

.pb-filter-bar__row {
    max-width: 1200px;
    margin: 0 auto;
}
.pb-filter-bar__row + .pb-filter-bar__row { margin-top: 10px; }

.pb-filter-bar__search {
    position: relative;
    display: flex;
    align-items: center;
}
.pb-filter-bar__search svg {
    position: absolute;
    left: 14px;
    color: var(--ink-3, #A8A29E);
    pointer-events: none;
}
.pb-filter-bar__search input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 1.5px solid rgba(28,25,23,.10);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink, #1C1917);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
/* Hide the native browser X for type=search — we render our own pbSearchClear */
.pb-filter-bar__search input::-webkit-search-cancel-button,
.pb-filter-bar__search input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}
.pb-filter-bar__search input::-ms-clear {
    display: none;
}
/* Hide our custom clear when input is empty (defensive — JS also toggles `hidden` attr) */
.pb-filter-bar__search input:placeholder-shown ~ .pb-filter-bar__search-clear {
    display: none !important;
}
.pb-filter-bar__search input::placeholder {
    color: var(--ink-3, #A8A29E);
}
.pb-filter-bar__search input:focus {
    outline: none;
    border-color: var(--forest-mid, #2D6A4F);
    box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
.pb-filter-bar__search-clear {
    position: absolute;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(28,25,23,.06);
    color: var(--ink-2, #57534E);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.pb-filter-bar__search-clear:hover {
    background: rgba(28,25,23,.12);
}

.pb-filter-bar__row--filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pb-filter {
    display: flex;
    flex-direction: column;
    flex: 1 1 140px;
    min-width: 130px;
    max-width: 200px;
}
.pb-filter__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    /* Was --ink-3 (#A8A29E) — failed WCAG AA at 2.35:1. Promoted to --ink-2 (8.8:1).
       Site-wide --ink-3 debt remains; this page now uses readable labels. */
    color: var(--ink-2, #57534E);
    margin-bottom: 4px;
    padding-left: 2px;
}
.pb-filter select {
    padding: 9px 28px 9px 12px;
    border: 1.5px solid rgba(28,25,23,.10);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink, #1C1917);
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2357534E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pb-filter select:hover {
    border-color: rgba(28,25,23,.20);
}
.pb-filter select:focus {
    outline: none;
    border-color: var(--forest-mid, #2D6A4F);
    box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
/* WCAG 2.4.7 keyboard focus indicator (Lens 4 P0 fix) */
.pb-filter select:focus-visible {
    outline: 2.5px solid var(--forest-mid, #2D6A4F);
    outline-offset: 2px;
    border-color: var(--forest-mid, #2D6A4F);
}
/* Active filter highlight */
.pb-filter select.has-value {
    border-color: var(--sienna, #C4532B);
    background-color: rgba(196,83,43,.04);
    color: var(--sienna-dk, #A3401F);
    font-weight: 600;
}

.pb-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1.5px solid rgba(28,25,23,.10);
    background: #fff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    /* Promoted from --ink-3 (~2.6:1) to --ink-2 (8.8:1) for WCAG AA */
    color: var(--ink-2, #57534E);
    cursor: pointer;
    opacity: 0.65;
    transition: opacity .15s ease, color .15s ease, border-color .15s ease;
    align-self: flex-end;
    margin-bottom: 0;
}
.pb-filter-reset:focus-visible {
    outline: 2.5px solid var(--forest-mid, #2D6A4F);
    outline-offset: 2px;
    opacity: 1;
}
.pb-filter-reset.is-active {
    opacity: 1;
    color: var(--sienna, #C4532B);
    border-color: rgba(196,83,43,.30);
}
.pb-filter-reset:hover {
    opacity: 1;
}

.pb-filter-bar__meta {
    max-width: 1200px;
    margin: 8px auto 0;
    font-size: 13px;
    color: var(--ink-2, #57534E);
}
.pb-filter-bar__meta strong {
    color: var(--ink, #1C1917);
    font-weight: 600;
}

/* ============================================================
   GRANT CARD GRID
   ============================================================ */
.pb-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}
.pb-grid[aria-busy="true"] .pb-skeleton { display: block; }

.pb-skeleton {
    grid-column: 1 / -1;
}
.pb-skeleton__row {
    height: 220px;
    background: linear-gradient(110deg, rgba(28,25,23,.04) 8%, rgba(28,25,23,.06) 18%, rgba(28,25,23,.04) 33%);
    background-size: 200% 100%;
    animation: pb-skel 1.4s linear infinite;
    border-radius: 14px;
    margin-bottom: 16px;
}
@keyframes pb-skel {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Grant card — clickable anchor wrapping rich content */
.pb-grant-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(28,25,23,.08);
    border-radius: 14px;
    padding: 22px 22px 18px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s cubic-bezier(.4,0,.2,1), border-color .2s ease;
    min-height: 280px;
    cursor: pointer;
}
.pb-grant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(28,25,23,.10);
    border-color: rgba(28,25,23,.14);
    color: inherit;
}
.pb-grant-card:focus-visible {
    outline: 3px solid var(--forest-mid, #2D6A4F);
    outline-offset: 2px;
}

.pb-grant-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pb-grant-card__pill {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(45,106,79,.08);
    color: var(--forest-dk, #143728);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pb-grant-card__pill--urgent {
    background: rgba(196,83,43,.10);
    color: var(--sienna-dk, #A3401F);
}
.pb-grant-card__pill--type {
    background: rgba(184,134,11,.10);
    color: var(--gold, #B8860B);
}

.pb-grant-card__match {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    background: rgba(45,106,79,.12);
    /* forest-mid on light forest tint = 5.2:1 (passes AA) */
    color: var(--forest-dk, #143728);
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.pb-grant-card__title {
    font-family: var(--serif, Georgia, serif);
    font-size: 19px;
    line-height: 1.25;
    color: var(--ink, #1C1917);
    margin-bottom: 6px;
    font-weight: 500;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.pb-grant-card__org {
    font-size: 13px;
    color: var(--ink-2, #57534E);
    margin-bottom: 16px;
    /* Clamp to 1 line */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-grant-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.4;
}
.pb-grant-card__stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Was --ink-3, failed AA at 2.52:1 across 24+ cards. Promoted. */
    color: var(--ink-2, #57534E);
    margin-bottom: 2px;
    font-weight: 600;
}
.pb-grant-card__stat-value {
    display: block;
    color: var(--ink, #1C1917);
    font-weight: 600;
    font-size: 14px;
}

.pb-grant-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(28,25,23,.06);
}

.pb-grant-card__footer .pb-cta--unlock {
    flex: 1;
    /* Stop event propagation handled in JS */
}

.pb-grant-card__view-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ink-2, #57534E);
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(28,25,23,.04);
    transition: background .15s ease, color .15s ease;
    flex-shrink: 0;
}
.pb-grant-card:hover .pb-grant-card__view-pill {
    background: rgba(28,25,23,.08);
    color: var(--ink, #1C1917);
}

/* Unlocked badge */
.pb-grant-card--unlocked {
    border-color: rgba(45,106,79,.35);
    background: linear-gradient(180deg, #fff 0%, rgba(45,106,79,.02) 100%);
}
.pb-grant-card--unlocked .pb-grant-card__head::before {
    content: '✓ Unlocked';
    display: inline-block;
    padding: 3px 10px;
    background: var(--forest-mid, #2D6A4F);
    color: #fff;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.pb-grant-card--unlocked .pb-cta--unlock {
    background: var(--forest-mid, #2D6A4F);
    box-shadow: 0 3px 10px rgba(45,106,79,.20);
}
.pb-grant-card--unlocked .pb-cta--unlock:hover {
    background: var(--forest-dk, #143728);
    box-shadow: 0 5px 14px rgba(45,106,79,.28);
}

/* Empty state */
.pb-empty {
    max-width: 480px;
    margin: 64px auto;
    padding: 0 24px;
    text-align: center;
    color: var(--ink-2, #57534E);
}
.pb-empty svg { color: var(--ink-3, #A8A29E); margin-bottom: 16px; }
.pb-empty__title {
    font-size: 22px;
    color: var(--ink, #1C1917);
    margin-bottom: 8px;
}
.pb-empty__body {
    font-size: 15px;
    margin-bottom: 24px;
}

/* Load more */
.pb-load-more {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 0 24px;
    text-align: center;
}
.pb-load-more__count {
    color: var(--ink-3, #A8A29E);
    font-weight: 400;
    margin-left: 6px;
    font-size: 13px;
}

/* ============================================================
   HOW IT WORKS — inverted forest section
   ============================================================ */
.pb-how {
    padding: 96px 24px;
    background: var(--forest-dk, #143728);
    color: rgba(255,255,255,.85);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pb-how::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 30% at 50% 0%, rgba(196,83,43,.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(184,134,11,.06) 0%, transparent 70%);
    pointer-events: none;
}
.pb-how__steps {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.pb-how__step {
    text-align: center;
    padding: 0 12px;
}

.pb-how__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--sienna, #C4532B);
    color: #fff;
    font-family: var(--serif, Georgia, serif);
    font-style: italic;
    font-size: 22px;
    font-weight: 600;
    margin: 0 auto 18px;
    box-shadow: 0 4px 12px rgba(196,83,43,.30);
}

.pb-page .pb-how__title,
.pb-page h3.pb-how__title {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
}

.pb-how__body {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255,255,255,.78);
    max-width: 320px;
    margin: 0 auto;
}

.pb-how__guarantee {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9999px;
    font-size: 14px;
    color: rgba(255,255,255,.85);
}
.pb-how__guarantee svg { color: rgba(255,255,255,.85); flex-shrink: 0; }
.pb-how__guarantee a {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.30);
    margin-left: 4px;
}
.pb-how__guarantee a:hover { color: var(--sienna, #C4532B); border-color: var(--sienna, #C4532B); }

/* ============================================================
   COMPARISON SECTION
   ============================================================ */
.pb-compare {
    padding: 96px 24px;
    background: var(--paper-warm, #FFF9F0);
    border-top: 1px solid rgba(28,25,23,.06);
    border-bottom: 1px solid rgba(28,25,23,.06);
}

.pb-compare__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: start;
}

.pb-compare__card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 14px;
    border: 1px solid rgba(28,25,23,.08);
    box-shadow: 0 1px 3px rgba(28,25,23,.04);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pb-compare__card--featured {
    border-color: var(--sienna, #C4532B);
    box-shadow: 0 8px 24px rgba(196,83,43,.12);
    background: linear-gradient(180deg, #fff 0%, rgba(196,83,43,.02) 100%);
    transform: scale(1.02);
    z-index: 1;
}

.pb-compare__card--muted {
    background: rgba(28,25,23,.02);
    border-color: rgba(28,25,23,.08);
    box-shadow: none;
}
.pb-compare__card--muted .pb-compare__name { color: var(--ink-2, #57534E); }
.pb-compare__card--muted .pb-compare__amount { color: var(--ink-2, #57534E); }

.pb-compare__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    background: var(--sienna, #C4532B);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 9999px;
    box-shadow: 0 3px 10px rgba(196,83,43,.25);
    white-space: nowrap;
}

.pb-compare__name {
    font-size: 18px;
    color: var(--ink, #1C1917);
    margin-bottom: 12px;
    font-weight: 500;
}

.pb-compare__price {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(28,25,23,.06);
}
.pb-compare__amount {
    font-family: var(--serif, Georgia, serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--ink, #1C1917);
    line-height: 1;
}
.pb-compare__period {
    display: block;
    font-size: 12px;
    color: var(--ink-2, #57534E);
    margin-top: 4px;
}

.pb-compare__list {
    margin-bottom: 18px;
    padding: 0;
    list-style: none;
    flex: 1;
}
.pb-compare__list li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-2, #57534E);
    margin-bottom: 10px;
}
.pb-compare__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D6A4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.pb-compare__list li strong {
    color: var(--ink, #1C1917);
    font-weight: 600;
}
.pb-compare__list--muted li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8A29E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.pb-compare__when {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-2, #57534E);
    padding: 14px;
    background: rgba(28,25,23,.03);
    border-radius: 8px;
    margin-bottom: 18px;
}
.pb-compare__when strong { color: var(--ink, #1C1917); }

.pb-compare__card .pb-cta {
    margin-top: auto;
}

/* ============================================================
   FAQ
   ============================================================ */
.pb-faq {
    padding: 96px 24px;
    background: var(--parchment, #FAF7F2);
}
.pb-faq__list {
    max-width: 760px;
    margin: 0 auto;
}
.pb-faq__item {
    border-bottom: 1px solid rgba(28,25,23,.10);
    padding: 0;
}
.pb-faq__item:first-child { border-top: 1px solid rgba(28,25,23,.10); }
.pb-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-family: var(--serif, Georgia, serif);
    font-size: 18px;
    color: var(--ink, #1C1917);
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    transition: color .15s ease;
}
.pb-faq__q::-webkit-details-marker { display: none; }
.pb-faq__q:hover { color: var(--forest-mid, #2D6A4F); }
.pb-faq__chevron {
    flex-shrink: 0;
    color: var(--ink-2, #57534E);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.pb-faq__item[open] .pb-faq__chevron { transform: rotate(180deg); }

.pb-faq__a {
    padding: 0 0 24px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-2, #57534E);
}
.pb-faq__a a {
    color: var(--forest-mid, #2D6A4F);
    border-bottom: 1px solid rgba(45,106,79,.30);
}
.pb-faq__a a:hover { border-color: currentColor; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.pb-final {
    padding: 96px 24px;
    background:
        linear-gradient(135deg, var(--forest-dk, #143728) 0%, var(--forest, #1B4332) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pb-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(196,83,43,.12) 0%, transparent 70%);
    pointer-events: none;
}
.pb-final__inner {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}
.pb-page .pb-final__headline,
.pb-page h2.pb-final__headline {
    font-size: clamp(28px, 4vw, 44px);
    color: #fff;
    margin-bottom: 16px;
}
.pb-final__sub {
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255,255,255,.82);
    margin-bottom: 32px;
}
.pb-final__ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pb-final__guarantee {
    font-size: 13px;
    color: rgba(255,255,255,.65);
}

/* Scoped CTA overrides for the dark-forest final section.
   Primary forest-dk button would disappear into the section background,
   so we promote to sienna; ghost gets the inverted (white border) treatment. */
.pb-final .pb-cta--primary {
    background: var(--sienna, #C4532B);
    color: #fff;
    box-shadow: 0 4px 14px rgba(196,83,43,.30), inset 0 -1px 0 rgba(0,0,0,.10);
}
.pb-final .pb-cta--primary:hover {
    background: var(--sienna-dk, #A3401F);
    color: #fff;
    box-shadow: 0 6px 18px rgba(196,83,43,.40);
}
.pb-final .pb-cta--ghost {
    color: #fff;
    border-color: rgba(255,255,255,.35);
    background: transparent;
}
.pb-final .pb-cta--ghost:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
    border-color: rgba(255,255,255,.65);
}

/* ============================================================
   FOOTER
   ============================================================ */
.pb-footer {
    background: var(--ink, #1C1917);
    color: rgba(255,255,255,.65);
    padding: 56px 24px 32px;
}
.pb-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.pb-footer__logo {
    display: inline-block;
    font-family: var(--serif, Georgia, serif);
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 10px;
}
.pb-footer__tagline {
    font-size: 13px;
    color: rgba(255,255,255,.55);
}
.pb-footer__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pb-footer__links a {
    color: rgba(255,255,255,.70);
    font-size: 14px;
}
.pb-footer__links a:hover { color: #fff; }
.pb-footer__legal {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.40);
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .pb-deliverables__grid { grid-template-columns: repeat(2, 1fr); }
    .pb-personalized__grid { grid-template-columns: repeat(2, 1fr); }
    .pb-grid { grid-template-columns: repeat(2, 1fr); }
    .pb-compare__grid { grid-template-columns: repeat(2, 1fr); }
    .pb-compare__card--featured { transform: none; }
}

@media (max-width: 720px) {
    .pb-hero { padding: 64px 20px 56px; }
    .pb-hero__headline { font-size: 32px; }
    .pb-hero__price { font-size: 26px; }
    .pb-hero__sub { font-size: 16px; margin-bottom: 28px; }
    .pb-hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
    .pb-hero__ctas .pb-cta { width: 100%; }
    .pb-trust { gap: 12px; }
    .pb-trust__pill { font-size: 12px; }

    .pb-deliverables { padding: 64px 20px; }
    .pb-deliverables__grid { grid-template-columns: 1fr; gap: 14px; }
    .pb-tile { padding: 24px 22px; }

    .pb-personalized { padding: 56px 20px 48px; }
    .pb-personalized__grid { grid-template-columns: 1fr; }

    .pb-section__head { margin-bottom: 32px; }
    .pb-section__head--inline { padding: 0 20px; }

    .pb-index { padding: 56px 0 64px; }

    .pb-filter-bar { padding: 12px 16px; top: 56px; }
    .pb-filter-bar__row + .pb-filter-bar__row { margin-top: 8px; }
    .pb-filter-bar__row--filters {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pb-filter-bar__row--filters::-webkit-scrollbar { display: none; }
    .pb-filter { flex: 0 0 auto; min-width: 130px; max-width: 180px; }
    .pb-filter-reset { flex-shrink: 0; }
    .pb-filter-bar__search input { font-size: 16px; /* iOS zoom prevention */ }

    .pb-grid { grid-template-columns: 1fr; padding: 0 20px; gap: 14px; }
    .pb-grant-card { min-height: 240px; padding: 20px; }
    .pb-grant-card__title { font-size: 18px; }
    .pb-grant-card__stats { grid-template-columns: 1fr 1fr; }
    /* 44px minimum tap target on mobile (a11y / WCAG 2.5.5) */
    .pb-grant-card__footer .pb-cta--unlock { padding: 14px 18px; font-size: 15px; min-height: 44px; }
    .pb-grant-card__view-pill { min-height: 44px; padding: 12px 12px; }
    .pb-filter select { min-height: 44px; padding: 12px 28px 12px 12px; font-size: 15px; }
    .pb-filter-bar__search input { min-height: 44px; }
    .pb-filter-reset { min-height: 44px; padding: 12px 16px; }

    .pb-how { padding: 64px 20px; }
    .pb-how__steps { grid-template-columns: 1fr; gap: 36px; }

    .pb-compare { padding: 64px 20px; }
    .pb-compare__grid { grid-template-columns: 1fr; }
    .pb-compare__card { padding: 24px 22px; }

    .pb-faq { padding: 64px 20px; }
    .pb-faq__q { font-size: 16px; padding: 18px 0; }

    .pb-final { padding: 64px 20px; }
    .pb-final__ctas { flex-direction: column; align-items: stretch; }
    .pb-final__ctas .pb-cta { width: 100%; }

    .pb-footer__inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .pb-hero { padding: 48px 16px 48px; }
    .pb-hero__headline { font-size: 28px; }
    .pb-hero__eyebrow { font-size: 12px; padding: 6px 12px; margin-bottom: 20px; }
    .pb-hero__price { font-size: 22px; }
    .pb-tile__title { font-size: 18px; }
    .pb-grant-card__title { font-size: 17px; }
    .pb-h2 { font-size: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pb-page * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .pb-grant-card:hover { transform: none; }
    .pb-tile:hover { transform: none; }
}

/* Print — basic */
@media print {
    .pb-filter-bar, .pb-cta, .pb-footer, .pb-final { display: none; }
}
