/* =============================================================================
   FYSH — Private Offer Tracker explainer page
   CR: fysh-price-broker-explainer-2026-08-27
   Member facing walkthrough. Figures faithfully recreate the real Private Offer Tracker
   screens (bid-sessions list + bid-session view) using the shared design tokens
   so they track whatever palette is live. Self contained pbx- prefix; no reliance
   on the workbench bid-session stylesheet.
============================================================================= */

.pbx-main { background: var(--surface-1, #F7F9FC); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.pbx-hero {
    background: linear-gradient(160deg, var(--navy, #0F2340) 0%, #0A1A30 100%);
    color: #fff;
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.pbx-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold-lt, #E8C96A); margin-bottom: 1rem;
}
.pbx-hero__eyebrow svg { width: 16px; height: 16px; }
.pbx-hero h1 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; line-height: 1.1;
    margin: 0 0 1rem; text-wrap: balance; max-width: 20ch;
}
.pbx-hero__lead {
    font-size: clamp(1.02rem, 2.2vw, 1.2rem); line-height: 1.65;
    color: rgba(255,255,255,0.82); max-width: 60ch; margin: 0 0 1.6rem;
}
.pbx-hero__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pbx-hero__pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px; padding: 7px 14px; font-size: 0.82rem; font-weight: 500;
    color: rgba(255,255,255,0.92);
}
.pbx-hero__pill svg { width: 14px; height: 14px; color: var(--gold-lt, #E8C96A); }

/* ── Reassurance strip ────────────────────────────────────────────────────── */
.pbx-assure {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin: -2.2rem auto 0; position: relative;
}
@media (max-width: 860px) { .pbx-assure { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pbx-assure { grid-template-columns: 1fr; } }
.pbx-assure__card {
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: 4px;
    padding: 1.1rem 1.15rem; box-shadow: var(--shadow-md, 0 6px 20px rgba(15,35,64,.10));
}
.pbx-assure__card i { font-size: 22px; color: var(--gold, #C9A84C); }
.pbx-assure__card h3 {
    font-size: 0.95rem; font-weight: 700; color: var(--navy, #0F2340); margin: 8px 0 3px;
}
.pbx-assure__card p { font-size: 0.82rem; color: var(--muted, #6B7A8D); line-height: 1.5; margin: 0; }

/* ── Step section ─────────────────────────────────────────────────────────── */
.pbx-steps { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.pbx-intro { max-width: 62ch; margin: 0 auto 2.5rem; text-align: center; }
.pbx-intro h2 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; color: var(--navy, #0F2340);
    line-height: 1.15; margin: 0 0 0.7rem; text-wrap: balance;
}
.pbx-intro p { font-size: 1.02rem; color: var(--muted, #6B7A8D); line-height: 1.7; margin: 0; }

.pbx-step {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.pbx-step:nth-child(even) .pbx-step__body { order: 2; }
@media (max-width: 820px) {
    .pbx-step { grid-template-columns: 1fr; gap: 1.5rem; }
    .pbx-step:nth-child(even) .pbx-step__body { order: 0; }
}
.pbx-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--navy, #0F2340); color: var(--gold-lt, #E8C96A);
    font-family: var(--font-display, serif); font-weight: 700; font-size: 1.05rem;
    margin-bottom: 0.9rem;
}
.pbx-step__body h3 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; color: var(--navy, #0F2340);
    line-height: 1.2; margin: 0 0 0.7rem; text-wrap: balance;
}
.pbx-step__body p { font-size: 1rem; color: var(--slate, #2C3E50); line-height: 1.7; margin: 0 0 0.8rem; }
.pbx-step__body p:last-child { margin-bottom: 0; }
.pbx-step__note {
    display: flex; gap: 9px; align-items: flex-start;
    background: var(--surface-2, #EEF2F8); border-left: 3px solid var(--gold, #C9A84C);
    border-radius: 0 10px 10px 0; padding: 0.8rem 1rem; margin-top: 1rem;
    font-size: 0.9rem; color: var(--slate, #2C3E50); line-height: 1.6;
}
.pbx-step__note i { color: var(--gold, #C9A84C); font-size: 17px; margin-top: 1px; flex-shrink: 0; }

/* ── Figure frame (a mini browser panel) ──────────────────────────────────── */
.pbx-fig {
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: 4px;
    overflow: hidden; box-shadow: var(--shadow-lg, 0 16px 48px rgba(15,35,64,.14));
}
.pbx-fig__bar {
    display: flex; align-items: center; gap: 7px; padding: 9px 13px;
    background: var(--navy, #0F2340); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pbx-fig__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.28); }
.pbx-fig__bar b {
    margin-left: 8px; font: 600 0.72rem var(--font-body, sans-serif);
    color: rgba(255,255,255,0.75); letter-spacing: 0.02em;
}
.pbx-fig__body { padding: 1.1rem; background: var(--surface-1, #F7F9FC); }
.pbx-fig__cap {
    font-size: 0.78rem; color: var(--muted, #6B7A8D); text-align: center;
    padding: 0.7rem 1rem 0; line-height: 1.5;
}

/* ── Panel + card primitives inside figures ───────────────────────────────── */
.pbx-card {
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: 4px;
    padding: 0.9rem 1rem; margin-bottom: 0.7rem;
}
.pbx-card:last-child { margin-bottom: 0; }
.pbx-h {
    display: flex; align-items: center; gap: 8px; font-family: var(--font-display, serif);
    font-weight: 700; color: var(--navy, #0F2340); font-size: 0.98rem; margin: 0 0 0.2rem;
}
.pbx-h i { color: var(--gold, #C9A84C); font-size: 17px; }
.pbx-sub { font-size: 0.8rem; color: var(--muted, #6B7A8D); margin: 0 0 0.7rem; line-height: 1.5; }

.pbx-eligible {
    display: flex; align-items: center; gap: 11px;
    padding: 0.7rem 0; border-top: 1px solid var(--border, #E2E8F0);
}
.pbx-eligible__ico {
    width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2, #EEF2F8);
    display: flex; align-items: center; justify-content: center; color: var(--muted, #6B7A8D);
    flex-shrink: 0;
}
.pbx-eligible__t { font-size: 0.86rem; font-weight: 600; color: var(--navy, #0F2340); }
.pbx-eligible__m { font-size: 0.75rem; color: var(--muted, #6B7A8D); }
.pbx-eligible__btn {
    margin-left: auto; background: var(--gold, #C9A84C); color: var(--navy, #0F2340);
    border-radius: 7px; padding: 6px 12px; font: 600 0.78rem var(--font-body, sans-serif);
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}

/* Offer amount + fields (action panel replica) */
.pbx-field-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--navy, #0F2340); margin: 0.7rem 0 0.3rem; }
.pbx-field-label span { color: var(--muted, #6B7A8D); font-weight: 400; }
.pbx-amount { display: flex; align-items: center; border: 1px solid var(--border-strong, #CBD5E1); border-radius: 8px; overflow: hidden; }
.pbx-amount .gbp { padding: 0 11px; color: var(--muted, #6B7A8D); font-weight: 600; background: var(--surface-2, #EEF2F8); align-self: stretch; display: flex; align-items: center; }
.pbx-amount .val { padding: 9px 11px; font-size: 0.95rem; color: var(--navy, #0F2340); font-weight: 600; font-variant-numeric: tabular-nums; }
.pbx-textbox {
    border: 1px solid var(--border-strong, #CBD5E1); border-radius: 8px; padding: 9px 11px;
    font-size: 0.82rem; color: var(--muted, #6B7A8D); background: #fff; line-height: 1.5;
}
.pbx-toggles { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 9px; }
.pbx-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--slate, #2C3E50); }
.pbx-toggle .sw { width: 34px; height: 20px; border-radius: 999px; background: var(--border, #E2E8F0); position: relative; flex-shrink: 0; }
.pbx-toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.pbx-toggle.is-on .sw { background: var(--blue, #1E5BA8); }
.pbx-toggle.is-on .sw::after { left: 16px; }
.pbx-btnrow { display: flex; gap: 8px; margin-top: 0.9rem; flex-wrap: wrap; }
.pbx-btn { font: 600 0.82rem var(--font-body, sans-serif); border-radius: 8px; padding: 9px 15px; display: inline-flex; align-items: center; gap: 6px; }
.pbx-btn--primary { background: var(--blue, #1E5BA8); color: #fff; }
.pbx-btn--accept { background: #fff; color: var(--navy, #0F2340); border: 1px solid var(--navy, #0F2340); }
.pbx-btn--gold { background: var(--gold, #C9A84C); color: var(--navy, #0F2340); }
.pbx-secondary { margin-top: 0.7rem; font-size: 0.76rem; color: var(--muted, #6B7A8D); display: flex; gap: 14px; flex-wrap: wrap; }
.pbx-secondary span { display: inline-flex; align-items: center; gap: 5px; }

/* Bid context strip */
.pbx-context { display: flex; gap: 18px; background: var(--surface-2, #EEF2F8); border-radius: 9px; padding: 0.7rem 0.9rem; margin-bottom: 0.4rem; }
.pbx-context__lab { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted, #6B7A8D); }
.pbx-context__val { font-family: var(--font-display, serif); font-weight: 700; font-size: 1.05rem; color: var(--navy, #0F2340); font-variant-numeric: tabular-nums; }
.pbx-context__val--theirs { color: var(--blue, #1E5BA8); }
.pbx-hint { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--slate, #2C3E50); margin-top: 0.5rem; }
.pbx-hint i { color: var(--gold-dark, #A8863A); }

/* Timeline offer cards */
.pbx-offer {
    border: 1px solid var(--border, #E2E8F0); border-left-width: 4px; border-radius: 4px;
    padding: 0.75rem 0.9rem; margin-bottom: 0.6rem; background: #fff;
}
.pbx-offer:last-child { margin-bottom: 0; }
.pbx-offer--vendor { border-left-color: var(--gold, #C9A84C); }
.pbx-offer--buyer  { border-left-color: var(--blue, #1E5BA8); }
.pbx-offer__top { display: flex; align-items: center; gap: 8px; margin-bottom: 0.35rem; }
.pbx-chip { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.pbx-chip--vendor { background: #FDF3D0; color: #7A5800; }
.pbx-chip--buyer  { background: #E8F0FD; color: #1E3A8A; }
.pbx-offer__type { font-size: 0.78rem; font-weight: 600; color: var(--navy, #0F2340); }
.pbx-offer__time { margin-left: auto; font-size: 0.72rem; color: var(--muted, #6B7A8D); white-space: nowrap; }
.pbx-offer__amt { font-family: var(--font-display, serif); font-weight: 700; font-size: 1.3rem; color: var(--navy, #0F2340); font-variant-numeric: tabular-nums; }
.pbx-offer__amt small { font-family: var(--font-body, sans-serif); font-size: 0.72rem; font-weight: 500; color: var(--muted, #6B7A8D); margin-left: 8px; }
.pbx-offer__note { font-size: 0.8rem; color: var(--slate, #2C3E50); margin-top: 0.35rem; font-style: italic; }
.pbx-offer--accept { background: #E7F3EE; border-color: #B7DFCC; border-left-color: #2E7D5B; }
.pbx-offer--accept .pbx-chip { background: #CDEBD9; color: #1C5C3E; }
.pbx-sysrow { text-align: center; font-size: 0.74rem; color: var(--muted, #6B7A8D); padding: 0.4rem 0; }
.pbx-sysrow b { color: var(--navy, #0F2340); }

/* Concluded summary */
.pbx-concl { text-align: center; padding: 0.4rem 0.3rem; }
.pbx-concl__badge { display: inline-flex; align-items: center; gap: 6px; background: #E7F3EE; color: #1C5C3E; font-size: 0.75rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.pbx-concl__agreed { font-family: var(--font-display, serif); font-weight: 700; font-size: 1.9rem; color: var(--navy, #0F2340); margin: 0.6rem 0 0.1rem; font-variant-numeric: tabular-nums; }
.pbx-concl__lab { font-size: 0.78rem; color: var(--muted, #6B7A8D); }
.pbx-concl__save { background: var(--surface-2, #EEF2F8); border-radius: 10px; padding: 0.7rem; margin-top: 0.9rem; font-size: 0.85rem; color: var(--slate, #2C3E50); }
.pbx-concl__save b { color: var(--gold-dark, #A8863A); font-size: 1.05rem; }

/* Timer bar */
.pbx-timer { display: flex; align-items: center; gap: 9px; margin-bottom: 0.7rem; }
.pbx-timer i { color: var(--muted, #6B7A8D); }
.pbx-timer__lab { font-size: 0.76rem; color: var(--muted, #6B7A8D); white-space: nowrap; }
.pbx-timer__track { flex: 1; height: 6px; border-radius: 999px; background: var(--border, #E2E8F0); overflow: hidden; }
.pbx-timer__fill { height: 100%; width: 78%; background: linear-gradient(90deg, var(--blue, #1E5BA8), var(--blue-lt, #4A9EE0)); }

/* ── Closing CTA ──────────────────────────────────────────────────────────── */
.pbx-cta { background: var(--navy, #0F2340); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; text-align: center; margin-top: 1.5rem; }
.pbx-cta h2 { font-family: var(--font-display, serif); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin: 0 0 0.7rem; text-wrap: balance; }
.pbx-cta p { color: rgba(255,255,255,0.8); font-size: 1.02rem; line-height: 1.7; max-width: 56ch; margin: 0 auto 1.5rem; }
.pbx-cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pbx-cta__btn { border-radius: 9px; padding: 12px 24px; font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.pbx-cta__btn--gold { background: var(--gold, #C9A84C); color: var(--navy, #0F2340); }
.pbx-cta__btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
