/* ============================================================
   RB Marketplace — Public Vendor Guide
   All rules scoped under .vendor-guide so the storefront chrome
   (header, footer, mini-cart, currency switcher) is untouched.
   Built on top of Bootstrap 5 + theme tokens. No new font imports.
   ============================================================ */

.vendor-guide {
    --vg-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --vg-text: #111827;
    --vg-text-muted: #6b7280;
    --vg-border: #e5e7eb;
    --vg-bg: #ffffff;
    --vg-bg-soft: #f9fafb;
    --vg-bg-soft-2: #f3f4f6;
    --vg-accent: var(--bs-primary, #d72654);
    --vg-accent-soft: rgba(215, 38, 84, 0.1);
    --vg-accent-on: #ffffff;
    --vg-mark-bg: #fef08a;
    --vg-mark-fg: #422006;
    --vg-info-bg: #eff6ff;
    --vg-info-border: #2563eb;
    --vg-warning-bg: #fff7e6;
    --vg-warning-border: #d97706;
    --vg-success: #16a34a;
    --vg-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
    --vg-shadow-md: 0 10px 40px rgba(17, 24, 39, 0.08);
    --vg-shadow-toc: 0 1px 3px rgba(17, 24, 39, 0.06), 0 12px 36px rgba(17, 24, 39, 0.07);
    --vg-radius-sm: 10px;
    --vg-radius-md: 14px;
    --vg-radius-lg: 18px;
    --vg-radius-xl: 22px;
    /* Fixed storefront header (set on .vendor-guide if needed) + sticky search band */
    --vg-site-header-offset: 0px;
    --vg-search-band: 5.35rem;
    --vg-toc-top: calc(
        var(--vg-site-header-offset) + var(--vg-search-band) + env(safe-area-inset-top, 0px)
    );

    color: var(--vg-text);
    line-height: 1.7;
    font-size: 16px;
    font-family: var(--vg-font);
    -webkit-font-smoothing: antialiased;
}

/*
 * Sticky TOC: many storefront themes set overflow-x: hidden on <main>, which breaks
 * position:sticky for descendants. Only applies while this page is open (:has).
 */
body:has(.vendor-guide) main {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.vendor-guide .container,
.vendor-guide__body,
.vendor-guide__layout {
    overflow: visible;
}

/* Reset some marketplace overflows for the page itself */
.vendor-guide * {
    box-sizing: border-box;
}

.vendor-guide :is(h2, h3, h4) {
    color: var(--vg-text);
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================================
   1. HERO
   ============================================================ */
.vendor-guide__hero {
    position: relative;
    padding: 4.5rem 0 4rem;
    background:
        radial-gradient(circle at 20% 0%, rgba(215, 38, 84, 0.18), transparent 45%),
        radial-gradient(circle at 80% 100%, rgba(124, 58, 237, 0.18), transparent 45%),
        linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    overflow: hidden;
}

.vendor-guide__hero-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.vendor-guide__hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 0.85rem;
}

.vendor-guide__hero-headline {
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.vendor-guide__hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 1.75rem;
    max-width: 720px;
    line-height: 1.6;
}

.vendor-guide__hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.vendor-guide__hero-btn {
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
}

.vendor-guide__hero-btn--primary {
    box-shadow: 0 8px 22px rgba(215, 38, 84, 0.35);
}

.vendor-guide__hero-btn--secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
}

.vendor-guide__hero-btn--secondary:hover,
.vendor-guide__hero-btn--secondary:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
}

.vendor-guide__hero-microcopy {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    margin: 0 auto 2rem;
    max-width: 540px;
}

.vendor-guide__hero-quote {
    margin: 2.5rem auto 0;
    max-width: 640px;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--vg-accent);
    border-radius: var(--vg-radius-sm);
    text-align: left;
}

.vendor-guide__hero-quote p {
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
    line-height: 1.55;
}

.vendor-guide__hero-quote cite {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Trust badges */
.vendor-guide__trust-badges {
    list-style: none;
    padding: 0;
    margin: 1.25rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    max-width: 720px;
}

.vendor-guide__trust-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(4px);
}

.vendor-guide__trust-badge-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ============================================================
   2. SEARCH BAR
   ============================================================ */
.vendor-guide__search-wrap {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--vg-bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--vg-border) 85%, transparent);
    padding: 0.75rem 0 0.65rem;
    box-shadow: var(--vg-shadow-sm);
}

@supports not (backdrop-filter: blur(12px)) {
    .vendor-guide__search-wrap {
        background: var(--vg-bg);
    }
}

.vendor-guide__search {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
}

.vendor-guide__search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vg-text-muted);
    pointer-events: none;
    font-size: 1rem;
    line-height: 1;
}

.vendor-guide__search-input {
    padding-left: 2.75rem;
    padding-right: 6rem;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--vg-border);
    background: var(--vg-bg-soft);
    width: 100%;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vendor-guide__search-input:hover {
    border-color: color-mix(in srgb, var(--vg-accent) 28%, var(--vg-border));
}

.vendor-guide__search-input:focus {
    background: var(--vg-bg);
    box-shadow: 0 0 0 3px var(--vg-accent-soft);
    border-color: var(--vg-accent);
    outline: none;
}

.vendor-guide__search-hint {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: 8px;
    padding: 4px 9px;
    font-size: 0.7rem;
    color: var(--vg-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    pointer-events: none;
}

.vendor-guide__search-summary {
    margin: 0.45rem auto 0;
    max-width: 42rem;
    font-size: 0.8125rem;
    color: var(--vg-text-muted);
    min-height: 1em;
    text-align: left;
}

/* ============================================================
   3. TWO-COLUMN BODY (TOC + main)
   ============================================================ */
.vendor-guide__body {
    padding: 2.75rem 0 4.5rem;
    background: linear-gradient(180deg, var(--vg-bg-soft) 0%, var(--vg-bg) 14rem);
}

.vendor-guide__layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: start;
}

/* TOC: sticky column — scroll only the aside (not sticky+overflow on one inner node) */
.vendor-guide__toc {
    position: relative;
    min-width: 0;
}

@media (min-width: 1024px) {
    .vendor-guide__toc {
        position: sticky;
        top: var(--vg-toc-top);
        align-self: start;
        z-index: 15;
        max-height: calc(100vh - var(--vg-toc-top) - 1.25rem);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-gutter: stable;
        padding-right: 4px;
    }

    .vendor-guide__toc::-webkit-scrollbar {
        width: 6px;
    }

    .vendor-guide__toc::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--vg-text-muted) 35%, transparent);
        border-radius: 999px;
    }

    .vendor-guide__toc-inner {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

.vendor-guide__toc-panel {
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-md);
    box-shadow: var(--vg-shadow-toc);
    padding: 1rem 0.85rem 1rem 1rem;
}

.vendor-guide__toc-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--vg-text-muted);
    margin: 0 0 0.65rem;
    padding: 0 0.35rem;
}

.vendor-guide__toc-nav {
    margin: 0;
}

.vendor-guide__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vendor-guide__toc-item {
    margin: 0;
}

.vendor-guide__toc-link {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.48rem 0.5rem;
    border-radius: var(--vg-radius-sm);
    color: var(--vg-text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.38;
    border-left: 3px solid transparent;
    transition:
        background 0.14s ease,
        color 0.14s ease,
        border-color 0.14s ease;
    min-height: 40px;
}

.vendor-guide__toc-link:hover {
    background: var(--vg-bg-soft);
    color: var(--vg-text);
}

.vendor-guide__toc-link:focus-visible {
    outline: 2px solid var(--vg-accent);
    outline-offset: 2px;
}

.vendor-guide__toc-link.is-active {
    background: var(--vg-accent-soft);
    color: var(--vg-accent);
    font-weight: 600;
    border-left-color: var(--vg-accent);
}

.vendor-guide__toc-num {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    color: var(--vg-text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    margin-top: 0.12em;
}

.vendor-guide__toc-link.is-active .vendor-guide__toc-num {
    color: var(--vg-accent);
}

.vendor-guide__toc-text {
    flex: 1;
    min-width: 0;
}

.vendor-guide__main {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.vendor-guide__section {
    padding-bottom: 2.75rem;
    border-bottom: 1px solid var(--vg-border);
    margin-bottom: 2.75rem;
    scroll-margin-top: calc(var(--vg-toc-top) + 0.75rem);
}

.vendor-guide__section[hidden] {
    display: none !important;
}

.vendor-guide__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 2rem;
}

.vendor-guide__section-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.vendor-guide__section-number {
    flex-shrink: 0;
    margin-top: 0.15rem;
    background: linear-gradient(145deg, var(--vg-bg-soft-2), var(--vg-bg-soft));
    color: var(--vg-accent);
    border: 1px solid color-mix(in srgb, var(--vg-accent) 22%, var(--vg-border));
    border-radius: var(--vg-radius-sm);
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.vendor-guide__section-title {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    margin: 0;
    flex: 1;
    letter-spacing: -0.02em;
    line-height: 1.22;
}

.vendor-guide__anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    color: var(--vg-text-muted);
    text-decoration: none;
    margin-left: 0.3rem;
    font-weight: 500;
    opacity: 0;
    border-radius: 6px;
    transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.vendor-guide__section-title:hover .vendor-guide__anchor,
.vendor-guide__anchor:focus-visible {
    opacity: 1;
}

.vendor-guide__anchor:hover {
    color: var(--vg-accent);
    background: var(--vg-accent-soft);
}

.vendor-guide__anchor.is-copied {
    opacity: 1;
    color: var(--vg-accent);
}

.vendor-guide__section-body :is(h3, h4) {
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.vendor-guide__section-body h3 {
    font-size: 1.2rem;
}

.vendor-guide__section-body h4 {
    font-size: 1.05rem;
}

.vendor-guide__section-body p,
.vendor-guide__section-body li {
    color: var(--vg-text);
}

.vendor-guide__section-body p {
    margin: 0 0 1rem;
}

.vendor-guide__section-body p.lead {
    font-size: 1.1rem;
    color: var(--vg-text);
    margin-bottom: 1.4rem;
    line-height: 1.65;
}

.vendor-guide__section-body ul,
.vendor-guide__section-body ol {
    padding-left: 1.4rem;
    margin: 0 0 1.2rem;
}

.vendor-guide__section-body li {
    margin-bottom: 0.5rem;
}

.vendor-guide__section-body code {
    background: var(--vg-bg-soft);
    border: 1px solid var(--vg-border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.88em;
    color: var(--vg-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.vendor-guide__section-body blockquote {
    border-left: 3px solid var(--vg-border);
    padding: 0.4rem 1rem;
    margin: 0.75rem 0 1.25rem;
    color: var(--vg-text);
    background: var(--vg-bg-soft);
    border-radius: 0 var(--vg-radius-sm) var(--vg-radius-sm) 0;
}

.vendor-guide__section-body blockquote p {
    margin: 0;
}

/* ============================================================
   5. CALLOUTS
   ============================================================ */
.vendor-guide__callout {
    border-left: 4px solid;
    border-radius: var(--vg-radius-sm);
    padding: 0.95rem 1.1rem;
    margin: 1.25rem 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.vendor-guide__callout strong {
    font-weight: 600;
}

.vendor-guide__callout--info {
    background: var(--vg-info-bg);
    border-left-color: var(--vg-info-border);
    color: #1e3a8a;
}

.vendor-guide__callout--warning {
    background: var(--vg-warning-bg);
    border-left-color: var(--vg-warning-border);
    color: #78350f;
}

.vendor-guide__callout--info a,
.vendor-guide__callout--warning a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* ============================================================
   6. SECTION-SPECIFIC PIECES
   ============================================================ */

/* Benefits grid (sec 02) */
.vendor-guide__benefits-grid {
    margin: 0;
}

.vendor-guide__benefit-card {
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-md);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.vendor-guide__benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--vg-shadow-md);
    border-color: var(--vg-accent-soft);
}

.vendor-guide__benefit-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.vendor-guide__benefit-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.vendor-guide__benefit-card p {
    color: var(--vg-text-muted);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.55;
}

/* Timeline (sec 03) */
.vendor-guide__timeline {
    list-style: none;
    counter-reset: none;
    padding: 0;
    margin: 1.25rem 0 0;
    position: relative;
}

.vendor-guide__timeline::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--vg-accent), var(--vg-border));
    z-index: 0;
}

.vendor-guide__timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.vendor-guide__timeline-num {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--vg-accent);
    color: var(--vg-accent-on);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px var(--vg-bg);
}

.vendor-guide__timeline-body {
    flex: 1;
    padding-top: 0.25rem;
}

.vendor-guide__timeline-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.vendor-guide__timeline-body p {
    margin: 0;
    color: var(--vg-text-muted);
    line-height: 1.55;
}

/* Personas (sec 04) */
.vendor-guide__personas {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0;
}

.vendor-guide__persona {
    background: var(--vg-bg-soft);
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-md);
    padding: 1.25rem 1.4rem;
}

.vendor-guide__persona h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.vendor-guide__persona p {
    margin: 0 0 0.5rem;
    color: var(--vg-text);
    font-size: 0.95rem;
}

.vendor-guide__persona-checkin {
    color: var(--vg-success);
    font-size: 0.9rem;
    margin: 0.4rem 0 0 !important;
}

/* Examples (good vs weak — sec 06, 08) */
.vendor-guide__example {
    border-left: 3px solid;
    border-radius: var(--vg-radius-sm);
    padding: 0.85rem 1.1rem;
    margin: 0.5rem 0 1.25rem;
}

.vendor-guide__example p {
    margin: 0;
    line-height: 1.6;
}

.vendor-guide__example--strong {
    background: rgba(22, 163, 74, 0.08);
    border-left-color: var(--vg-success);
    color: #14532d;
}

.vendor-guide__example--weak {
    background: rgba(220, 38, 38, 0.06);
    border-left-color: #dc2626;
    color: #7f1d1d;
}

/* Earnings table (sec 10) */
.vendor-guide__earnings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.5rem;
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-md);
    overflow: hidden;
}

.vendor-guide__earnings-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--vg-border);
    font-size: 0.95rem;
}

.vendor-guide__earnings-table tr:last-child td {
    border-bottom: none;
}

.vendor-guide__earnings-table td:first-child {
    color: var(--vg-text-muted);
}

.vendor-guide__earnings-table td:last-child {
    text-align: right;
    color: var(--vg-text);
    font-variant-numeric: tabular-nums;
}

.vendor-guide__earnings-table__highlight td {
    background: var(--vg-bg-soft);
}

.vendor-guide__earnings-amount {
    color: var(--vg-success);
    font-size: 1.05rem;
}

/* Playbook (sec 13) */
.vendor-guide__playbook {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: grid;
    gap: 1rem;
}

.vendor-guide__playbook > li {
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-md);
    padding: 1.1rem 1.25rem;
}

.vendor-guide__playbook h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
}

.vendor-guide__playbook p {
    margin: 0;
    color: var(--vg-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ (sec 14) — native <details> for reliable expand/collapse without JS */
.vendor-guide__faq {
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-md);
    overflow: hidden;
    margin: 1rem 0 1.5rem;
}

.vendor-guide__faq-item {
    border-bottom: 1px solid var(--vg-border);
}

.vendor-guide__faq-item:last-child {
    border-bottom: none;
}

.vendor-guide__faq-question {
    list-style: none;
    appearance: none;
    -webkit-appearance: none;
    background: var(--vg-bg);
    border: none;
    width: 100%;
    text-align: left;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--vg-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    line-height: 1.4;
    min-height: 56px;
    transition: background 0.12s ease;
}

.vendor-guide__faq-question::-webkit-details-marker {
    display: none;
}

.vendor-guide__faq-question::marker {
    content: '';
}

.vendor-guide__faq-q-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.vendor-guide__faq-question:hover {
    background: var(--vg-bg-soft);
}

details.vendor-guide__faq-item[open] > .vendor-guide__faq-question {
    background: var(--vg-bg-soft);
}

.vendor-guide__faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    border: 1px solid var(--vg-border);
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--vg-text-muted);
    transition: transform 0.2s ease, color 0.15s ease, border-color 0.15s ease;
}

details.vendor-guide__faq-item[open] .vendor-guide__faq-icon {
    transform: rotate(45deg);
    color: var(--vg-accent);
    border-color: var(--vg-accent);
}

.vendor-guide__faq-answer {
    padding: 0 1.2rem 1.15rem;
    color: var(--vg-text);
    line-height: 1.65;
    border-top: 1px solid color-mix(in srgb, var(--vg-border) 70%, transparent);
}

.vendor-guide__faq-answer p {
    margin: 0;
}

/* Section 18 — Ready (premium CTA) */
.vendor-guide__ready {
    position: relative;
    margin: 1.5rem 0 2.25rem;
    border-radius: var(--vg-radius-xl);
    padding: 2px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--vg-accent) 55%, #7c3aed) 0%,
        color-mix(in srgb, var(--vg-accent) 40%, #0ea5e9) 50%,
        color-mix(in srgb, var(--vg-accent) 35%, #111827) 100%
    );
    box-shadow: var(--vg-shadow-md);
    overflow: hidden;
}

.vendor-guide__ready-glow {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--vg-accent) 25%, transparent), transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.18), transparent 42%);
    pointer-events: none;
    opacity: 0.85;
}

.vendor-guide__ready-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #ffffff 0%, var(--vg-bg-soft) 100%);
    border-radius: calc(var(--vg-radius-xl) - 2px);
    padding: 2.35rem 1.75rem 2.15rem;
    text-align: center;
}

.vendor-guide__ready-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--vg-accent);
    margin: 0 0 0.65rem;
}

.vendor-guide__ready-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    color: var(--vg-text);
}

.vendor-guide__ready-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--vg-text-muted);
    margin: 0 0 1.5rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.vendor-guide__ready-stats {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
}

.vendor-guide__ready-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 7rem;
    padding: 0.85rem 1rem;
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-md);
    box-shadow: var(--vg-shadow-sm);
}

.vendor-guide__ready-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--vg-accent);
    letter-spacing: -0.02em;
}

.vendor-guide__ready-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.3;
}

.vendor-guide__ready-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.15rem;
}

.vendor-guide__ready-btn-primary {
    min-height: 52px;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--vg-accent) 35%, transparent);
}

.vendor-guide__ready-btn-secondary {
    min-height: 52px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    border-radius: 999px;
    border-width: 2px;
}

.vendor-guide__ready-btn-secondary--solo {
    margin-top: 0.5rem;
}

.vendor-guide__ready-footnote {
    font-size: 0.875rem;
    color: var(--vg-text-muted);
    margin: 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

@media (max-width: 639.98px) {
    .vendor-guide__ready-inner {
        padding: 1.75rem 1.2rem;
    }

    .vendor-guide__ready-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vendor-guide__ready-btn-primary,
    .vendor-guide__ready-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .vendor-guide__ready-stat {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }
}

/* Mistakes / resources (sec 15, 16, 17) */
.vendor-guide__mistakes,
.vendor-guide__resources {
    padding-left: 1.4rem;
    margin: 1rem 0 1.5rem;
}

.vendor-guide__mistakes li,
.vendor-guide__resources li {
    margin-bottom: 0.65rem;
    line-height: 1.6;
}

/* Bottom CTA */
.vendor-guide__bottom-cta {
    padding: 4rem 0 5rem;
    background:
        radial-gradient(circle at 80% 0%, rgba(215, 38, 84, 0.12), transparent 55%),
        linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.vendor-guide__bottom-cta-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-xl);
    padding: 2.75rem 2rem;
    text-align: center;
    box-shadow: var(--vg-shadow-md);
}

.vendor-guide__bottom-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.vendor-guide__bottom-cta-sub {
    color: var(--vg-text-muted);
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
}

.vendor-guide__bottom-cta-btn {
    min-height: 52px;
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(215, 38, 84, 0.25);
}

.vendor-guide__bottom-cta-microcopy {
    color: var(--vg-text-muted);
    font-size: 0.875rem;
    margin: 1.1rem auto 0;
    max-width: 520px;
}

.vendor-guide__bottom-cta-secondary {
    color: var(--vg-text-muted);
    font-size: 0.92rem;
    margin: 1.5rem 0 0;
}

.vendor-guide__bottom-cta-secondary a {
    color: var(--vg-accent);
    font-weight: 600;
}

/* Final CTA (sec 18) */
.vendor-guide__final-cta {
    text-align: center;
    margin: 1.25rem 0 1.5rem;
}

.vendor-guide__final-cta-btn {
    min-height: 52px;
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: 999px;
}

.vendor-guide__final-cta-microcopy {
    color: var(--vg-text-muted);
    font-size: 0.875rem;
    margin: 1rem auto 0;
    max-width: 540px;
}

.vendor-guide__final-cta-recap {
    color: var(--vg-text-muted);
    font-size: 0.95rem;
    text-align: center;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

/* Paused notice */
.vendor-guide__paused {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    text-align: left;
}

.vendor-guide__paused--compact {
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
}

/* Screenshots */
.vendor-guide__screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-md);
    margin: 1rem 0 1.5rem;
    background: var(--vg-bg-soft);
    min-height: 60px;
}

/* Search highlight */
.vendor-guide mark {
    background: var(--vg-mark-bg);
    color: var(--vg-mark-fg);
    padding: 0 2px;
    border-radius: 2px;
}

/* Empty state (search) */
.vendor-guide__empty {
    border: 1px dashed color-mix(in srgb, var(--vg-accent) 30%, var(--vg-border));
    border-radius: var(--vg-radius-md);
    padding: 2.25rem 1.5rem;
    text-align: center;
    color: var(--vg-text-muted);
    margin-bottom: 1.75rem;
    background: linear-gradient(180deg, var(--vg-accent-soft), var(--vg-bg));
}

.vendor-guide__empty h3 {
    margin: 0 0 0.5rem;
    color: var(--vg-text);
    font-size: 1.125rem;
}

/* ============================================================
   7. MOBILE: Jump-to-section button + drawer
   ============================================================ */
.vendor-guide__jump-button {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 35;
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: var(--vg-accent);
    color: var(--vg-accent-on);
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    min-height: 44px;
    cursor: pointer;
}

.vendor-guide__jump-button:hover,
.vendor-guide__jump-button:focus {
    color: var(--vg-accent-on);
    transform: translateY(-1px);
}

.vendor-guide__drawer[hidden] {
    display: none !important;
}

.vendor-guide__drawer {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.vendor-guide__drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    animation: vg-fade 0.18s ease;
}

.vendor-guide__drawer-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--vg-bg);
    border-top-left-radius: var(--vg-radius-xl);
    border-top-right-radius: var(--vg-radius-xl);
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.5rem;
    animation: vg-slideup 0.22s ease;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}

.vendor-guide__drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--vg-border);
    margin-bottom: 0.5rem;
}

.vendor-guide__drawer-close {
    appearance: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--vg-text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.vendor-guide__drawer-close:hover {
    background: var(--vg-bg-soft);
    color: var(--vg-text);
}

.vendor-guide__drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vendor-guide__drawer-list li {
    margin: 0;
}

.vendor-guide__drawer-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.6rem;
    border-radius: var(--vg-radius-sm);
    color: var(--vg-text);
    text-decoration: none;
    font-size: 0.95rem;
    min-height: 48px;
    border-bottom: 1px solid var(--vg-bg-soft);
}

.vendor-guide__drawer-link:hover {
    background: var(--vg-bg-soft);
    color: var(--vg-text);
}

.vendor-guide__drawer-num {
    color: var(--vg-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    min-width: 24px;
}

@keyframes vg-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes vg-slideup {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .vendor-guide__toc-link,
    .vendor-guide__anchor,
    .vendor-guide__search-input,
    .vendor-guide__benefit-card {
        transition: none !important;
    }

    .vendor-guide__drawer-backdrop,
    .vendor-guide__drawer-panel {
        animation: none !important;
    }

    .vendor-guide__jump-button:hover,
    .vendor-guide__jump-button:focus {
        transform: none;
    }
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width: 1023.98px) {
    .vendor-guide__layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vendor-guide__toc {
        display: none !important;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .vendor-guide__jump-button {
        display: inline-flex;
    }

    .vendor-guide__hero {
        padding: 3.25rem 0 3rem;
    }

    .vendor-guide__bottom-cta-card {
        padding: 2rem 1.4rem;
    }

    .vendor-guide__section {
        scroll-margin-top: 5rem;
    }
}

@media (max-width: 639.98px) {
    .vendor-guide {
        font-size: 15.5px;
    }

    .vendor-guide__hero {
        padding: 2.75rem 0 2.5rem;
    }

    .vendor-guide__hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .vendor-guide__hero-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .vendor-guide__hero-quote {
        margin-top: 1.75rem;
        padding: 1rem 1.1rem;
    }

    .vendor-guide__search-input {
        height: 44px;
    }

    .vendor-guide__search-hint {
        display: none;
    }

    .vendor-guide__section-title {
        font-size: 1.25rem;
    }

    .vendor-guide__timeline::before {
        left: 18px;
    }

    .vendor-guide__timeline-num {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .vendor-guide__bottom-cta {
        padding: 3rem 0 4rem;
    }

    .vendor-guide__bottom-cta-card {
        padding: 1.75rem 1.1rem;
        border-radius: var(--vg-radius-md);
    }
}

/* Tap targets — universal floor */
.vendor-guide a.btn,
.vendor-guide button.btn {
    min-height: 44px;
}

/* ============================================================
   9. PRINT
   ============================================================ */
@media print {
    .vendor-guide__hero,
    .vendor-guide__search-wrap,
    .vendor-guide__toc,
    .vendor-guide__bottom-cta,
    .vendor-guide__jump-button,
    .vendor-guide__drawer,
    .vendor-guide__empty {
        display: none !important;
    }

    .vendor-guide__layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vendor-guide {
        font-family: Georgia, "Times New Roman", serif;
        font-size: 11pt;
        line-height: 1.55;
        color: #000;
    }

    .vendor-guide__main {
        max-width: none;
    }

    .vendor-guide__section {
        page-break-before: always;
        border-bottom: none;
        padding-bottom: 0;
    }

    .vendor-guide__section:first-of-type {
        page-break-before: avoid;
    }

    .vendor-guide__section-title {
        font-size: 18pt;
    }

    .vendor-guide__anchor {
        display: none !important;
    }

    .vendor-guide__callout,
    .vendor-guide__benefit-card,
    .vendor-guide__persona,
    .vendor-guide__playbook > li,
    .vendor-guide__faq {
        border: 1px solid #888 !important;
        background: transparent !important;
    }

    .vendor-guide__faq-question {
        list-style: none;
    }

    .vendor-guide__faq-item .vendor-guide__faq-answer {
        display: block !important;
        border-top: none;
    }

    .vendor-guide a {
        color: inherit;
        text-decoration: none;
    }

    .vendor-guide mark {
        background: transparent;
        color: inherit;
        text-decoration: underline;
    }
}
