/* ------------------------------------------------------------------
   cro-urgency.css: the parts of the urgency layer nobody sees in the first
   second -- the exit popup and the risk matrix. Loaded async by the layout.
   First-screen rules (deadline bar, ad offer) are in
   cro-urgency-critical.css, which the layout inlines.

   Not part of tools/build-css.sh: nothing to rebuild after editing it.
   ------------------------------------------------------------------ */

/* ---------- exit popup ---------- */
.cro-exit {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(1, 13, 20, .78);
}

.cro-exit.open { display: flex; }

.cro-exit-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: auto;
    background: #fff;
    border-top: 6px solid #ffb703;
    border-radius: 8px;
    padding: 30px 30px 24px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
    animation: cro-exit-in .22s ease-out;
}

@keyframes cro-exit-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cro-exit-card { animation: none; }
}

.cro-exit-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: 0;
    font-size: 30px;
    line-height: 1;
    padding: 4px 9px;
    cursor: pointer;
    color: #78838c;
}

.cro-exit-close:hover, .cro-exit-close:focus { color: #010d14; }

.cro-exit-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #b45309;
    margin-bottom: 8px;
}

.cro-exit-card h2 {
    font-size: 25px;
    line-height: 1.2;
    color: #010d14;
    margin: 0 0 12px;
    padding-right: 18px;
}

.cro-exit-lede {
    font-size: 15.5px;
    line-height: 1.6;
    color: #5a6672;
    margin: 0 0 18px;
}

.cro-exit-lede strong { color: #010d14; }
.cro-exit-card .cro-submit { width: 100%; }

.cro-exit-foot {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #78838c;
    text-align: center;
}

.cro-exit-foot a { color: #010d14; font-weight: 700; }

@media (max-width: 575px) {
    .cro-exit { padding: 12px; }
    .cro-exit-card { padding: 26px 20px 20px; }
    .cro-exit-card h2 { font-size: 21px; }
}

/* ---------- risk matrix ---------- */
.cro-matrix { background: #fff; }

.cro-matrix-grid {
    border: 1px solid #e6e9ec;
    border-radius: 8px;
    overflow: hidden;
}

.cro-matrix-head,
.cro-matrix-row {
    display: grid;
    grid-template-columns: 190px 1fr 1fr;
}

.cro-matrix-row { border-top: 1px solid #e6e9ec; }

.cro-matrix-head span {
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cro-matrix-head .cro-matrix-bad { background: #fbeae7; color: #a3261b; }
.cro-matrix-head .cro-matrix-good { background: #010d14; color: #ffb703; }

.cro-matrix-row .cro-matrix-k {
    padding: 20px 22px;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.35;
    color: #010d14;
    background: #f6f7f8;
}

.cro-matrix-row p {
    position: relative;
    margin: 0;
    padding: 20px 22px 20px 52px;
    font-size: 15.5px;
    line-height: 1.6;
    color: #333;
}

.cro-matrix-row .cro-matrix-bad { background: #fffaf9; }
.cro-matrix-row .cro-matrix-good { background: #f4fbf6; border-left: 1px solid #e6e9ec; }

.cro-matrix-row p::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 23px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: center/11px 11px no-repeat;
}

.cro-matrix-row .cro-matrix-bad::before {
    background-color: #c8372b;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.cro-matrix-row .cro-matrix-good::before {
    background-color: #2e9e5b;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cro-matrix-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 36px;
}

/* Below tablet the three columns stop fitting: each row becomes a card, and the
   column headings move onto the cells themselves. */
@media (max-width: 767px) {
    .cro-matrix-head { display: none; }
    .cro-matrix-grid { border: 0; border-radius: 0; overflow: visible; }

    .cro-matrix-row {
        display: block;
        border: 1px solid #e6e9ec;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 16px;
    }

    .cro-matrix-row .cro-matrix-k { display: block; padding: 13px 18px; }
    .cro-matrix-row p { padding: 38px 18px 16px 48px; font-size: 15px; }
    .cro-matrix-row .cro-matrix-good { border-left: 0; border-top: 1px solid #e6e9ec; }
    .cro-matrix-row p::before { left: 18px; top: 40px; }

    .cro-matrix-row p::after {
        content: attr(data-label);
        position: absolute;
        left: 18px;
        top: 13px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .cro-matrix-row .cro-matrix-bad::after { color: #a3261b; }
    .cro-matrix-row .cro-matrix-good::after { color: #1d7a43; }
    .cro-matrix-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
