/* ===========================================================================
 * vw-product-engagements — engagement.css
 *
 * Brutalist concrete monochrome. Palette and typography are locked by
 * blueprints/cross-reference-matrix.md and the architecture brief:
 *   bg        #f5f5f0  (concrete white)
 *   text      #0d0d0d  (near-black)
 *   accent    #b5281c  (signal red)
 *   secondary #3a3a3a  (graphite)
 *   font body Inter
 *   font label IBM Plex Mono / Courier Prime
 *
 * Design rules: 0px border radius everywhere, 2px hard borders, no shadows,
 * no gradients, no rounded corners, no soft transitions on critical elements.
 * Section spacing 80px desktop / 48px mobile.
 * ========================================================================*/

/* ---- Tokens ------------------------------------------------------------- */
:root {
    --vwpe-bg:        #f5f5f0;
    --vwpe-bg-alt:    #ebebe4;   /* very subtly darker than --vwpe-bg for card contrast */
    --vwpe-text:      #0d0d0d;
    --vwpe-text-mute: #3a3a3a;
    --vwpe-accent:    #b5281c;
    --vwpe-accent-ink:#ffffff;
    --vwpe-border:    #0d0d0d;
    --vwpe-radius:    0;          /* hard 0 — never round anything */
    --vwpe-bw:        2px;        /* border width */
    --vwpe-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --vwpe-font-mono: 'IBM Plex Mono', 'Courier Prime', ui-monospace, monospace;
    --vwpe-section-y-d: 80px;
    --vwpe-section-y-m: 48px;
}

/* ---- Hide WC core artefacts that hook surgery couldn't catch ------------ */
/* Kadence + WC sometimes echo a product title outside the summary column;
   our hero owns the H1 so we suppress duplicates inside the summary. */
.summary .product_title,
.entry-summary > .product_title { display: none !important; }

/* ---- Layout shell ------------------------------------------------------- */
.vwpe-section {
    background: var(--vwpe-bg);
    color: var(--vwpe-text);
    font-family: var(--vwpe-font-body);
    padding-block: var(--vwpe-section-y-d);
    border-bottom: var(--vwpe-bw) solid var(--vwpe-border);
}
.vwpe-section:last-of-type { border-bottom: 0; }

@media (max-width: 782px) {
    .vwpe-section { padding-block: var(--vwpe-section-y-m); }
}

.vwpe-section__title {
    font-family: var(--vwpe-font-mono);
    font-size: clamp(1.1rem, 1vw + 0.9rem, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vwpe-text);
    margin: 0 0 32px;
    padding-bottom: 12px;
    border-bottom: var(--vwpe-bw) solid var(--vwpe-border);
}

/* ---- Hero --------------------------------------------------------------- */
.vwpe-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.vwpe-hero__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.vwpe-hero__title {
    font-family: var(--vwpe-font-body);
    font-weight: 700;
    font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
    line-height: 1.05;
    margin: 0;
    color: var(--vwpe-text);
}
.vwpe-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: var(--vwpe-bw) solid var(--vwpe-border);
    background: var(--vwpe-bg);
    font-family: var(--vwpe-font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vwpe-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.vwpe-hero__positioning {
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.2rem);
    line-height: 1.55;
    color: var(--vwpe-text-mute);
    max-width: 60ch;
    margin: 0;
}
.vwpe-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

/* ---- Buttons (brutalist, 2px border, hard 0 radius) -------------------- */
.vwpe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    font-family: var(--vwpe-font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: var(--vwpe-bw) solid var(--vwpe-border);
    border-radius: var(--vwpe-radius);
    cursor: pointer;
    transition: background-color 80ms linear, color 80ms linear;
    line-height: 1;
}
.vwpe-btn--primary {
    background: var(--vwpe-accent);
    color: var(--vwpe-accent-ink);
    border-color: var(--vwpe-accent);
}
.vwpe-btn--primary:hover,
.vwpe-btn--primary:focus {
    background: var(--vwpe-text);
    color: var(--vwpe-accent-ink);
    border-color: var(--vwpe-text);
}
.vwpe-btn--secondary {
    background: var(--vwpe-bg);
    color: var(--vwpe-text);
}
.vwpe-btn--secondary:hover,
.vwpe-btn--secondary:focus {
    background: var(--vwpe-text);
    color: var(--vwpe-bg);
}
.vwpe-btn--disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}
.vwpe-btn--sm {
    padding: 10px 16px;
    font-size: 0.85rem;
}

/* ---- Grids -------------------------------------------------------------- */
.vwpe-grid {
    display: grid;
    gap: 24px;
}
.vwpe-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vwpe-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 900px) {
    .vwpe-grid--3, .vwpe-grid--2 { grid-template-columns: 1fr; }
}

/* ---- Cards -------------------------------------------------------------- */
.vwpe-card {
    background: var(--vwpe-bg);
    border: var(--vwpe-bw) solid var(--vwpe-border);
    padding: 24px;
}
.vwpe-card__label {
    font-family: var(--vwpe-font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vwpe-text-mute);
    margin: 0 0 12px;
}
.vwpe-card__metric {
    font-family: var(--vwpe-font-body);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--vwpe-text);
    margin: 0;
    line-height: 1.2;
}
.vwpe-card__empty {
    font-family: var(--vwpe-font-body);
    font-style: italic;
    color: var(--vwpe-text-mute);
    margin: 0;
}

.vwpe-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vwpe-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.97rem;
    line-height: 1.45;
    color: var(--vwpe-text);
}
.vwpe-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 10px;
    height: var(--vwpe-bw);
    background: var(--vwpe-accent);
}
.vwpe-list li:last-child { margin-bottom: 0; }

/* ---- Configurator stub -------------------------------------------------- */
.vwpe-stub {
    /* Visually present but flagged as a placeholder so internal QA can see it. */
}
.vwpe-stub__body {
    border: var(--vwpe-bw) dashed var(--vwpe-text-mute);
    padding: 24px;
    background: var(--vwpe-bg-alt);
}
.vwpe-stub__note {
    margin: 0;
    font-family: var(--vwpe-font-mono);
    font-size: 0.9rem;
    color: var(--vwpe-text-mute);
    line-height: 1.5;
}

/* ---- FAQ accordion ----------------------------------------------------- */
.vwpe-faq { display: flex; flex-direction: column; }
.vwpe-faq__item {
    border-top: var(--vwpe-bw) solid var(--vwpe-border);
    padding: 0;
}
.vwpe-faq__item:last-child {
    border-bottom: var(--vwpe-bw) solid var(--vwpe-border);
}
.vwpe-faq__q {
    cursor: pointer;
    list-style: none;
    padding: 20px 36px 20px 0;
    font-family: var(--vwpe-font-body);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--vwpe-text);
    position: relative;
}
.vwpe-faq__q::-webkit-details-marker { display: none; }
.vwpe-faq__q::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--vwpe-font-mono);
    font-size: 1.4rem;
    color: var(--vwpe-accent);
    line-height: 1;
}
.vwpe-faq__item[open] .vwpe-faq__q::after { content: '\2212'; /* minus sign */ }
.vwpe-faq__a {
    padding: 0 0 24px;
    color: var(--vwpe-text-mute);
    font-size: 0.97rem;
    line-height: 1.6;
}
.vwpe-faq__a p { margin: 0 0 12px; }
.vwpe-faq__a p:last-child { margin: 0; }

/* ---- Sticky CTA bar ---------------------------------------------------- */
.vwpe-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--vwpe-text);
    color: var(--vwpe-bg);
    border-top: var(--vwpe-bw) solid var(--vwpe-accent);
    transform: translateY(100%);
    transition: transform 180ms ease-out;
}
.vwpe-sticky[data-vwpe-visible="1"] { transform: translateY(0); }
.vwpe-sticky__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.vwpe-sticky__label {
    font-family: var(--vwpe-font-mono);
    font-size: 0.95rem;
    color: var(--vwpe-bg);
    flex: 1 1 auto;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vwpe-sticky .vwpe-btn--primary {
    /* Inherits default primary; nothing to override visually. */
    flex: 0 0 auto;
}
.vwpe-sticky__close {
    background: transparent;
    color: var(--vwpe-bg);
    border: var(--vwpe-bw) solid var(--vwpe-bg);
    width: 32px;
    height: 32px;
    line-height: 1;
    font-size: 1.2rem;
    cursor: pointer;
    flex: 0 0 auto;
}
.vwpe-sticky__close:hover { background: var(--vwpe-bg); color: var(--vwpe-text); }

@media (max-width: 600px) {
    .vwpe-sticky__inner { padding: 10px 14px; gap: 10px; }
    .vwpe-sticky__label { font-size: 0.85rem; }
}
