/**
 * Agentic Readiness Check — hero lead magnet (light surface).
 * np-rc- prefix. Sits inside .hero-grid over the Signal field.
 */

.np-rc {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 28px;
    pointer-events: auto;
}

/* Soft radial scrim — solid behind the text, fades to nothing at the edges
   so the Signal scene bleeds through and around the widget (no hard card). */
.np-rc::before {
    content: "";
    position: absolute;
    inset: -18% -8%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.82) 38%,
        rgba(255, 255, 255, 0.45) 62%,
        rgba(255, 255, 255, 0) 80%);
}

.np-rc > * {
    position: relative;
    z-index: 1;
}

.np-rc-kicker {
    display: block;
    margin: 0 0 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2.5px;
    color: #1F2937;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 7px rgba(255, 255, 255, 0.7);
}

.np-rc-row {
    display: flex;
    gap: 10px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(17, 24, 39, 0.22);
    border-radius: 9999px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.np-rc-row:focus-within {
    border-color: #5B21B6;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.12);
}

.np-rc-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    padding: 12px 12px 12px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    color: #111827;
}

.np-rc-input::placeholder { color: #9CA3AF; }

.np-rc-btn {
    cursor: pointer;
    border: none;
    border-radius: 9999px;
    padding: 12px 26px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #FFFFFF;
    background: #111827;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.np-rc-btn:hover {
    background: #D97706;
    transform: scale(1.02);
}

.np-rc-btn:disabled {
    cursor: wait;
    background: #6B7280;
    transform: none;
}

.np-rc-helper {
    margin: 8px 0 0;
    font-size: 12.5px;
    font-weight: 400;
    color: #6B7280;
    text-align: center;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 255, 255, 0.65);
}

.np-rc-status {
    margin: 12px 0 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: #4B5563;
    text-align: center;
}

/* ---------- result panel ---------- */

.np-rc-result {
    margin-top: 12px;
    padding: 18px 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 16px;
}

.np-rc-result-host {
    display: block;
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: #6B7280;
}

/* two scores side by side — the pitch */
.np-rc-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.np-rc-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.03);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.np-rc-score-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: #6B7280;
}

.np-rc-score-nums {
    display: flex;
    align-items: baseline;
    line-height: 1;
    margin: 4px 0 6px;
}

.np-rc-score-num {
    font-size: 48px;
    font-weight: 200;
    letter-spacing: -2px;
    color: #111827;
}

.np-rc-score-of {
    font-size: 16px;
    color: #9CA3AF;
    font-weight: 300;
}

.np-rc-score-cap {
    font-size: 11.5px;
    color: #6B7280;
}

.np-rc-score--good .np-rc-score-num { color: #047857; }
.np-rc-score--mid .np-rc-score-num { color: #B45309; }
.np-rc-score--bad .np-rc-score-num { color: #C2410C; }

/* headline finding — the wedge */
.np-rc-finding {
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 3px solid;
    margin-bottom: 14px;
}

.np-rc-finding-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    background: #C2410C;
    padding: 3px 9px;
    border-radius: 5px;
    margin-bottom: 9px;
}

.np-rc-finding--bug { border-left-width: 4px; }

.np-rc-finding-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
}

.np-rc-finding-detail {
    margin: 6px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #4B5563;
}

.np-rc-sev--critical { background: #FCEEEA; border-left-color: #C2410C; }
.np-rc-sev--high { background: #FDF3E7; border-left-color: #D97706; }
.np-rc-sev--medium { background: #F3EFFB; border-left-color: #5B21B6; }
.np-rc-sev--none { background: #E9F7F1; border-left-color: #047857; }

/* positives — what the site already does right (free return) */
.np-rc-wins {
    margin-bottom: 14px;
}

.np-rc-wins-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #047857;
    margin-bottom: 8px;
}

.np-rc-wins-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.np-rc-win {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #374151;
}

.np-rc-win-mark {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(4, 120, 87, 0.12);
    color: #047857;
    font-size: 10px;
    flex-shrink: 0;
}

.np-rc-summary {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
    color: #374151;
}

/* full checks behind an expander — don't dump the audit */
.np-rc-details {
    margin-bottom: 4px;
}

.np-rc-details-summary {
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #6B7280;
    padding: 6px 0;
    list-style-position: inside;
}

.np-rc-details-summary:hover { color: #D97706; }

.np-rc-check-group {
    margin: 12px 0 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9CA3AF;
}

.np-rc-check--na .np-rc-check-mark { background: rgba(107, 114, 128, 0.12); color: #6B7280; }
.np-rc-check--na .np-rc-check-state { color: #9CA3AF; }

/* consent checkbox */
.np-rc-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 4px 0;
    font-size: 12px;
    color: #6B7280;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 255, 255, 0.65);
}

.np-rc-consent input {
    width: 15px;
    height: 15px;
    accent-color: #5B21B6;
    cursor: pointer;
    flex-shrink: 0;
}

.np-rc-checks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.np-rc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

.np-rc-check-mark {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    flex-shrink: 0;
}

.np-rc-check--pass .np-rc-check-mark { background: rgba(4, 120, 87, 0.12); color: #047857; }
.np-rc-check--fail .np-rc-check-mark { background: rgba(194, 65, 12, 0.12); color: #C2410C; }

.np-rc-check-label {
    flex: 1;
    color: #374151;
}

.np-rc-check-state {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 1px;
}

.np-rc-check--pass .np-rc-check-state { color: #047857; }
.np-rc-check--fail .np-rc-check-state { color: #C2410C; }

.np-rc-result-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.np-rc-cta-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    color: #FFFFFF;
    background: #D97706;
    padding: 12px 26px;
    border-radius: 9999px;
    transition: background 0.2s, transform 0.2s;
}

.np-rc-cta-btn:hover {
    background: #B45309;
    transform: scale(1.02);
}

.np-rc-again {
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #6B7280;
    transition: color 0.2s;
}

.np-rc-again:hover { color: #D97706; }

.np-rc-result-cta--solo { justify-content: flex-end; }

/* ---------- email gate (TIER 2 — the trade) ---------- */

.np-rc-gate {
    margin-top: 16px;
    padding: 20px 22px;
    border-radius: 14px;
    background: #F4F1FB;
    border: 1px solid #E4DCF2;
}

.np-rc-gate-head {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.np-rc-gate-body {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #4B5563;
}

.np-rc-gate-gpc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(4, 120, 87, 0.1);
    color: #047857;
    font-size: 11.5px;
}

.np-rc-gate-row {
    display: flex;
    gap: 8px;
}

.np-rc-gate-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(17, 24, 39, 0.18);
    background: #FFFFFF;
    border-radius: 9999px;
    outline: none;
    padding: 11px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.np-rc-gate-input::placeholder { color: #9CA3AF; }

.np-rc-gate-input:focus {
    border-color: #5B21B6;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.12);
}

/* matches the header CTA — white fill, gradient border, dark text; compact */
.np-rc-gate-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
    font-weight: var(--font-weight-medium, 500);
    font-size: 0.875rem;
    color: var(--text-primary, #0A0A0A);
    background:
        linear-gradient(var(--np-white, #FFFFFF), var(--np-white, #FFFFFF)) padding-box,
        var(--np-gradient, linear-gradient(90deg, #FF966C 0%, #D97706 25%, #3c1361 75%, #6E56CF 100%)) border-box;
    border: 2px solid transparent;
    border-radius: var(--radius-md, 8px);
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.np-rc-gate-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md, 0 4px 12px rgba(17, 24, 39, 0.12)); }
.np-rc-gate-btn:disabled { cursor: wait; opacity: 0.55; transform: none; box-shadow: none; }

.np-rc-gate-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #4B5563;
    cursor: pointer;
}

.np-rc-gate-consent input {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: #5B21B6;
    cursor: pointer;
    flex-shrink: 0;
}

.np-rc-gate-disclaimer {
    margin: 10px 0 0;
    font-size: 11.5px;
    color: #6B7280;
}

.np-rc-gate-disclaimer a {
    color: #5B21B6;
    text-decoration: underline;
    text-decoration-color: rgba(91, 33, 182, 0.35);
}

.np-rc-gate-disclaimer a:hover { text-decoration-color: #5B21B6; }

.np-rc-gate-err {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #C2410C;
}

/* ---------- unlocked breakdown (TIER 3) ---------- */

.np-rc-breakdown { margin-top: 6px; }

.np-rc-breakdown-head {
    margin: 0 0 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: #6B7280;
}

.np-rc-close {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.np-rc-close-eyebrow {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: #D97706;
    margin-bottom: 6px;
}

.np-rc-close-line {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: #111827;
}

/* ---------- responsive ---------- */

@media (max-width: 600px) {
    .np-rc-row {
        flex-direction: column;
        border-radius: 20px;
    }

    .np-rc-btn { width: 100%; }
    .np-rc-checks { grid-template-columns: 1fr; }

    .np-rc-gate-row { flex-direction: column; }
    .np-rc-gate-btn { width: 100%; }
    .np-rc-wins-list { grid-template-columns: 1fr; }

    .np-rc-result-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .np-rc-row,
    .np-rc-btn,
    .np-rc-cta-btn,
    .np-rc-gate-btn { transition: none; }
}
