/* ============================================================
   SPONSOR / PARTNER PAGE  (task-252)
   v6 — editorial rewrite. Shared primitives (hero, stats, feats,
   logo wall, CTA band) live in css/sections/partner-brand.css.
   This file only carries page-specific blocks: tiers, steps,
   wall labels, contact name.
   ============================================================ */

.partner-page { background: var(--rr-paper); color: var(--rr-ink); }

/* ── Logo-wall section labels ── */
.ppx-wall-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rr-muted);
    text-align: center;
    margin: 0 0 1.25rem;
}
.ppx-wall-label::before, .ppx-wall-label::after {
    content: "";
    width: clamp(20px, 6vw, 40px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rr-line));
}
.ppx-wall-label::after { background: linear-gradient(90deg, var(--rr-line), transparent); }
.ppx-wall-label--spaced { margin-top: clamp(2rem, 4vw, 3rem); }

/* Wider container so the packages use a large window instead of being capped at 1100px. task-281. */
.pb-container--wide { max-width: 1280px; }

/* ── Sponsorship tiers ──
   Fixed N-column grids that always FILL the row (no auto-fit gaps on wide screens),
   collapsing in clean steps. task-281. */
.ppx-tiers {
    display: grid;
    gap: clamp(1rem, 2.2vw, 1.5rem);
    align-items: stretch;
    /* Keep the packages compact and centred on wide monitors instead of stretching
       edge-to-edge into thin, sparse columns. */
    max-width: 1180px;
    margin-inline: auto;
}
.ppx-tiers--1 { grid-template-columns: minmax(0, 460px); justify-content: center; }
.ppx-tiers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
.ppx-tiers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; }
.ppx-tiers--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ppx-tiers--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Defensive: a 6th tier never collapses into one giant unstyled column. */
.ppx-tiers--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ppx-tier {
    --tier-color: var(--rr-accent);   /* set per-card inline from SponsorshipTier.color */
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.4rem, 2vw, 1.85rem) clamp(1.1rem, 1.6vw, 1.45rem);
    background: var(--rr-paper);
    border: 1px solid var(--rr-line);
    border-radius: 3px;               /* square / editorial — consistent with the brand page */
    box-shadow: var(--rr-shadow);
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}
/* Every package carries a coloured top stripe so the tiers read as distinct, colour-coded options. */
.ppx-tier::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 5px;
    background: var(--tier-color);
}
.ppx-tier:hover { transform: translateY(-5px); box-shadow: var(--rr-shadow-lg); }
.ppx-tier--featured {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--tier-color), var(--rr-shadow-lg);
}
.ppx-tier--featured::before { height: 7px; }
@media (prefers-reduced-motion: reduce) { .ppx-tier { transition: none; } .ppx-tier:hover { transform: none; } }
.ppx-tier__flag {
    position: absolute;
    /* Sit fully INSIDE the card — the card is overflow:hidden, so the old
       translateY(-50%) pushed the badge above the edge and clipped it away. */
    top: .8rem; right: .8rem;
    background: var(--tier-color);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .28rem .62rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    z-index: 2;
}
.ppx-tier__head { text-align: center; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rr-line); }
.ppx-tier__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem; height: 2.6rem;
    border-radius: 4px;
    background: var(--tier-color);
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: .7rem;
}
.ppx-tier__name {
    font-family: var(--rr-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rr-ink);
    margin: 0 0 .65rem;
}
.ppx-tier__price { display: flex; align-items: baseline; justify-content: center; gap: .3rem; margin: 0; }
.ppx-tier__amount { font-family: var(--rr-display); font-size: 1.85rem; font-weight: 700; color: var(--tier-color); }
.ppx-tier__per { font-size: .82rem; color: var(--rr-muted); }
.ppx-tier__suggested { font-size: .78rem; color: var(--rr-muted); margin: .5rem 0 0; }

.ppx-tier__body { flex: 1; padding: 1.2rem 0; }
.ppx-tier__benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.ppx-tier__benefits li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--rr-ink-soft); line-height: 1.45; }
.ppx-tier__benefits li i { color: var(--tier-color); font-size: 1rem; margin-top: .1rem; flex-shrink: 0; }
.ppx-tier__summary { font-size: .9rem; color: var(--rr-ink-soft); line-height: 1.6; margin: 0; }
/* CTA: filled in the tier colour for the featured card, outline-in-colour for the rest. */
.ppx-tier__cta { width: 100%; justify-content: center; background: var(--tier-color); border-color: var(--tier-color); color: #fff; }
.ppx-tier__cta:hover { filter: brightness(.92); color: #fff; }
.ppx-tier:not(.ppx-tier--featured) .ppx-tier__cta {
    background: transparent;
    color: var(--tier-color);
    border-color: var(--tier-color);
}
.ppx-tier:not(.ppx-tier--featured) .ppx-tier__cta:hover {
    background: var(--tier-color);
    color: #fff;
}

/* ── How-it-works steps ── */
.ppx-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    counter-reset: step;
}
.ppx-step { padding-top: 1.25rem; border-top: 2px solid var(--rr-accent); }
.ppx-step h3 {
    font-family: var(--rr-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rr-ink);
    margin: .5rem 0 .5rem;
}
.ppx-step p { font-size: .92rem; line-height: 1.6; color: var(--rr-ink-soft); margin: 0; }

/* ── Contact name ── */
.ppx-contact-name { text-align: center; color: var(--rr-muted); font-size: .88rem; margin: 1.25rem 0 0; }

/* ── Partner FAQ (task-271) ── */
.ppx-faq { max-width: 760px; margin: 0 auto; }
.ppx-faq__item {
    border: 1px solid var(--rr-line);
    border-radius: 4px;
    background: var(--rr-paper);
    margin-bottom: .6rem;
    overflow: hidden;
}
.ppx-faq__q {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.25rem;
    font-family: var(--rr-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--rr-ink);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.ppx-faq__q::-webkit-details-marker { display: none; }
.ppx-faq__q::before {
    content: "+";
    color: var(--rr-accent);
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 400;
    transition: transform .2s ease;
}
.ppx-faq__item[open] .ppx-faq__q::before { transform: rotate(45deg); }
.ppx-faq__a {
    padding: 0 1.25rem 1.1rem 2.6rem;
    color: var(--rr-ink-soft);
    line-height: 1.6;
    font-size: .95rem;
}

/* ── Responsive ── */
@media (max-width: 1180px) {
    .ppx-tiers--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ppx-tiers--3, .ppx-tiers--4, .ppx-tiers--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .ppx-tiers--2, .ppx-tiers--3, .ppx-tiers--4, .ppx-tiers--5 { grid-template-columns: 1fr; }
}

/* ── Sponsor-package request: success banner + modal form (task-285) ───────── */
.pp-flash {
    display: flex;
    align-items: center;
    gap: .6rem;
    max-width: 1000px;
    margin: 1rem auto 0;
    padding: .85rem 1.1rem;
    background: var(--rr-accent-soft, #e8f5f3);
    border: 1px solid var(--rr-accent, #138577);
    border-left-width: 4px;
    border-radius: 4px;
    color: var(--rr-accent-deep, #0f6f64);
    font-weight: 600;
}
.pp-flash i { font-size: 1.15rem; }

/* Honeypot — visually removed but still in the DOM for bots. */
.pp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* The sponsor-package request modal now uses the reusable .rr-modal public-modal
   pattern — its full styling (branded header, fields, footer, success/error
   states, mobile) lives in css/sections/partner-brand.css §7. Only the page-level
   flash banner and honeypot stay here. */
