/* ============================================================
   Platform page (21 Oct 2026): comparison table, six stages, and
   drawn "product windows" that illustrate real platform views.
   Every colour pair below meets 4.5:1 for text.
   ============================================================ */

/* ---------- Comparison: a typical scan vs the platform ---------- */
.pf-compare {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.pf-compare th,
.pf-compare td {
    text-align: left;
    vertical-align: top;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.pf-compare thead th {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #374151;
    border-bottom: 2px solid #111827;
}
.pf-compare thead th.us { color: #581c87; }
.pf-compare tbody th { width: 22%; font-weight: 600; color: #111827; }
.pf-compare td.them { color: #4b5563; }
.pf-compare td.us { color: #111827; background: #faf7ff; font-weight: 500; }
@media (max-width: 700px) {
    .pf-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .pf-compare tr { display: block; border-bottom: 1px solid #e5e7eb; padding: 12px 0; }
    .pf-compare th, .pf-compare td { display: block; width: auto; border: none; padding: 4px 0; }
    .pf-compare tbody th { font-size: 1rem; padding-bottom: 6px; }
    .pf-compare td::before {
        display: block;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #4b5563;
        margin-bottom: 2px;
    }
    .pf-compare td.them::before { content: "A typical automated scan"; }
    .pf-compare td.us::before { content: "The EnableUser platform"; color: #581c87; }
    .pf-compare td.us { padding: 8px 10px; border-radius: 6px; margin-top: 6px; }
}

/* ---------- Six stages, copy beside a product window ---------- */
.pf-stages { margin-top: 1rem; }
.pf-stage {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
    padding: 48px 0;
    border-top: 1px solid #e5e7eb;
}
.pf-stage:first-child { border-top: none; }
.pf-stage.is-flip .pf-copy { order: 2; }
.pf-stage > * { min-width: 0; }      /* lets a wide table scroll inside its window instead of widening the page */
.pf-step {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b21a8;
}
.pf-copy h3 { font-size: 1.5rem; line-height: 1.25; margin: 0.5rem 0 0.75rem; color: #111827; }
.pf-copy p { color: #374151; line-height: 1.7; margin: 0 0 0.9rem; }
.pf-copy ul { margin: 0.25rem 0 0; padding: 0; list-style: none; }
.pf-copy li { position: relative; padding-left: 22px; margin: 0.45rem 0; color: #1f2937; line-height: 1.55; }
.pf-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #7e22ce;
}
.pf-proof { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: #581c87; }
.pf-copy .pg-button { margin-top: 0.5rem; }
@media (max-width: 900px) {
    .pf-stage { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
    .pf-stage.is-flip .pf-copy { order: 0; }
}

/* ---------- Product windows ---------- */
.pf-figure { margin: 0; }
.pf-window {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 20px 44px rgba(17, 24, 39, 0.10), 0 2px 6px rgba(17, 24, 39, 0.06);
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    color: #111827;
}
.pf-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}
.pf-bar i { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; display: inline-block; }
.pf-bar b { margin-left: 8px; font-weight: 600; font-size: 12.5px; color: #111827; }
.pf-bar span { margin-left: auto; font-size: 12px; color: #4b5563; }
.pf-body { padding: 16px; }
.pf-note { margin-top: 10px; font-size: 12px; color: #4b5563; }

/* stat tiles inside windows */
.pf-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.pf-tile { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; }
.pf-tile strong { display: block; font-size: 18px; line-height: 1.1; color: #111827; }
.pf-tile small { display: block; margin-top: 4px; font-size: 11.5px; color: #4b5563; }
@media (max-width: 480px) { .pf-tiles { grid-template-columns: repeat(2, 1fr); } }

/* rows */
.pf-rows { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.pf-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 9px 12px;
    border-top: 1px solid #f3f4f6;
}
.pf-row:first-child { border-top: none; }
.pf-row.is-head { background: #f9fafb; font-size: 11.5px; font-weight: 600; color: #374151; letter-spacing: 0.03em; }
.pf-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* status chips */
.pf-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.pf-chip.pass { background: #dcfce7; color: #166534; }
.pf-chip.fail { background: #fee2e2; color: #991b1b; }
.pf-chip.na { background: #f3f4f6; color: #374151; }
.pf-chip.review { background: #fef3c7; color: #92400e; }
.pf-chip.pick { background: #f3e8ff; color: #581c87; }

/* capture layers */
.pf-layers { display: grid; gap: 8px; }
.pf-layer {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 12px;
    align-items: start;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
}
.pf-layer > b { font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; color: #4b5563; text-transform: uppercase; padding-top: 2px; }
.pf-layer.is-flag { border-color: #fca5a5; background: #fff7f7; }
.pf-mini-btn {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 6px;
    background: #15803d;
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
}
@media (max-width: 480px) { .pf-layer { grid-template-columns: 1fr; gap: 4px; } }

/* criterion matrix */
.pf-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.pf-matrix th, .pf-matrix td { padding: 6px 4px; text-align: center; border-bottom: 1px solid #f3f4f6; }
.pf-matrix thead th { font-weight: 600; color: #374151; font-size: 11px; }
.pf-matrix tbody th { text-align: left; font-weight: 500; color: #111827; white-space: nowrap; padding-right: 10px; }
.pf-cell { display: inline-block; min-width: 26px; padding: 2px 0; border-radius: 4px; font-weight: 700; font-size: 11px; }
.pf-cell.p { background: #dcfce7; color: #166534; }
.pf-cell.f { background: #fee2e2; color: #991b1b; }
.pf-cell.n { background: #f3f4f6; color: #374151; }
.pf-cell.r { background: #fef3c7; color: #92400e; }
.pf-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; font-size: 11.5px; color: #374151; }
.pf-scroll { overflow-x: auto; }

/* finding card */
.pf-finding { display: grid; gap: 10px; }
.pf-finding-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-finding-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: #111827; }
.pf-kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 12.5px; }
.pf-kv dt { color: #4b5563; font-weight: 500; }
.pf-kv dd { margin: 0; color: #111827; }
.pf-evidence {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pf-shot {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    background: #f9fafb;
    font-size: 12px;
}
.pf-shot .pf-field { border: 1px solid #6b7280; border-radius: 4px; padding: 5px 8px; background: #fff; color: #111827; }
.pf-shot .pf-err { margin-top: 6px; color: #b91c1c; font-weight: 600; outline: 2px dashed #b91c1c; outline-offset: 3px; display: inline-block; }
.pf-code { background: #111827; color: #f9fafb; border-radius: 8px; padding: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.6; overflow-x: auto; }
.pf-code .k { color: #c4b5fd; }
.pf-code .s { color: #86efac; }
.pf-code .c { color: #d1d5db; }
.pf-ok { font-size: 12px; font-weight: 600; color: #166534; }
@media (max-width: 480px) { .pf-evidence { grid-template-columns: 1fr; } .pf-kv { grid-template-columns: 1fr; gap: 2px; } }

/* bars */
.pf-bars { display: grid; gap: 8px; }
.pf-barrow { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 12px; color: #111827; }
.pf-track { height: 10px; border-radius: 999px; background: #f3f4f6; overflow: hidden; }
.pf-fill { height: 100%; border-radius: 999px; }
.pf-fill.g { background: #15803d; }
.pf-fill.r { background: #b91c1c; }
.pf-fill.y { background: #b45309; }
.pf-fill.n { background: #6b7280; }
.pf-barrow b { text-align: right; font-weight: 600; }
.pf-split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-sub { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #4b5563; margin: 0 0 8px; }
.pf-signed { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 8px; font-size: 12px; color: #166534; font-weight: 600; }
@media (max-width: 560px) { .pf-split2 { grid-template-columns: 1fr; } .pf-barrow { grid-template-columns: 96px 1fr 40px; } }

/* portal window */
.pf-portal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pf-portal-head strong { font-size: 15px; }
.pf-btn { display: inline-block; padding: 5px 12px; border-radius: 6px; background: #581c87; color: #fff; font-size: 12px; font-weight: 600; }

/* ---------- Photos and sector scenes (Solutions, Platform) ---------- */
.sol-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    margin: 1.5rem 0 2rem;
}
.sol-media > * { min-width: 0; }
.sol-media.is-single { grid-template-columns: minmax(0, 620px); }
.pf-photo { margin: 0; }
.pf-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}
.pf-photo figcaption { margin-top: 8px; font-size: 12.5px; color: #4b5563; }
.pf-scene-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pf-otp { display: flex; gap: 6px; }
.pf-otp span { width: 30px; height: 36px; border: 1.5px solid #6b7280; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.pf-timer { font-weight: 600; color: #991b1b; }
.pf-captcha { display: inline-block; padding: 6px 14px; border-radius: 6px; background: repeating-linear-gradient(45deg, #e5e7eb 0 6px, #f9fafb 6px 12px); font: italic 700 18px Georgia, serif; letter-spacing: 4px; color: #374151; }
.pf-swatch { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; border-radius: 6px; border: 1.5px solid #6b7280; font-size: 12px; font-weight: 600; }
.pf-swatch.out { background: #fee2e2; border-color: #fca5a5; color: #374151; }
.pf-player { background: #111827; color: #f9fafb; border-radius: 8px; padding: 10px; }
.pf-player-screen { height: 92px; border-radius: 6px; background: linear-gradient(135deg, #312e81, #581c87); display: flex; align-items: flex-end; padding: 8px; font-size: 12px; }
.pf-player-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; }
.pf-player-bar .pf-track { flex: 1; background: #374151; }
.pf-who { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 1.5rem; }
@media (max-width: 760px) {
    .sol-media, .pf-who { grid-template-columns: 1fr; }
}
