/* Pure Amino — Research Use Only gate + checkout affirmation styles. */

/* ---------- First-visit modal ---------- */
.pa-ruo-gate {
    position: fixed; inset: 0;
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(20, 23, 24, .78);
    backdrop-filter: blur(12px);
    transition: opacity .28s var(--ease-standard);
    overflow-y: auto;
}

/* Hidden after acceptance */
.pa-ruo-gate.pa-ruo-accepted {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Lock page scroll while gate is open */
body.pa-ruo-gate-open { overflow: hidden; }

.pa-ruo-card {
    background: var(--paper);
    width: min(640px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 44px 48px 36px;
    border: 1px solid var(--ink);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .3);
    display: flex; flex-direction: column; gap: 22px;
    position: relative;
    animation: paRuoRise .4s var(--ease-out) both;
}
.pa-ruo-gate.pa-ruo-accepted .pa-ruo-card { animation: none; }

@keyframes paRuoRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

.pa-ruo-eyebrow {
    display: flex; align-items: center; gap: 12px;
    font-size: 10.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink);
}
.pa-ruo-eyebrow .pa-ruo-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink);
    flex-shrink: 0;
}
.pa-ruo-eyebrow .pa-ruo-line {
    flex: 1; height: 1px;
    background: var(--ink);
    opacity: .35;
}

.pa-ruo-card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 4vw, 52px);
    line-height: .95;
    letter-spacing: -.025em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
}

.pa-ruo-body {
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-2);
    font-weight: 500;
    text-align: justify;
    margin: 0;
}

.pa-ruo-affirm {
    padding: 20px 22px;
    background: var(--paper-2);
    border: 1px solid var(--hairline);
}
.pa-ruo-affirm-lead {
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-3);
    margin: 0 0 12px;
}
.pa-ruo-affirm ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.pa-ruo-affirm li {
    font-size: 11px;
    line-height: 1.55;
    letter-spacing: .05em;
    color: var(--ink);
    padding-left: 18px;
    position: relative;
    font-weight: 500;
}
.pa-ruo-affirm li::before {
    content: '·';
    position: absolute;
    left: 6px;
    top: 0;
    font-size: 16px;
    line-height: 1;
}
.pa-ruo-affirm a {
    text-decoration: underline;
    color: var(--ink);
    text-underline-offset: 2px;
}
.pa-ruo-affirm a:hover { opacity: .6; }

.pa-ruo-actions {
    display: flex; gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.pa-ruo-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 180px;
}

.pa-ruo-foot {
    font-size: 9.5px;
    letter-spacing: .15em;
    color: var(--ink-4);
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .pa-ruo-card { padding: 32px 24px 28px; }
    .pa-ruo-actions { flex-direction: column; }
    .pa-ruo-actions .btn { width: 100%; }
}

/* ---------- Checkout affirmation checkbox ---------- */
.pa-wc .pa-checkout-ruo {
    margin: 20px 0;
    padding: 18px 20px;
    background: var(--paper-2);
    border-left: 3px solid var(--ink);
}
.pa-wc .pa-checkout-ruo label {
    display: flex; gap: 12px; align-items: flex-start;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    line-height: 1.65;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}
.pa-wc .pa-checkout-ruo input[type="checkbox"] {
    margin: 2px 0 0;
    flex-shrink: 0;
    width: 16px; height: 16px;
    accent-color: var(--ink);
    cursor: pointer;
}
.pa-wc .pa-checkout-ruo input[type="checkbox"]:required:invalid + span {
    color: var(--ink-2);
}
