.resource-gate {
    width: min(590px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 28px 80px rgba(3, 32, 41, .34);
}

.resource-gate::backdrop {
    background: rgba(3, 32, 41, .72);
    backdrop-filter: blur(3px);
}

.resource-gate-panel {
    position: relative;
    padding: clamp(1.5rem, 5vw, 3rem);
    border-top: 8px solid var(--red);
}

.resource-gate h2 {
    margin-bottom: .75rem;
    font-size: clamp(2rem, 7vw, 3.1rem);
    line-height: 1.02;
}

.resource-gate-message {
    color: var(--muted);
    font-size: 1.05rem;
}

.resource-gate-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 2.7rem;
    height: 2.7rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--navy);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.resource-gate-close:hover,
.resource-gate-close:focus-visible {
    background: rgba(7, 60, 77, .1);
}

.resource-gate-benefits {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
}

.resource-gate-benefits li {
    padding: .3rem 0 .3rem 1.5rem;
    position: relative;
}

.resource-gate-benefits li::before {
    position: absolute;
    left: 0;
    content: '✓';
    color: var(--red);
    font-weight: 900;
}

.resource-gate-form {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: .9rem;
}

.resource-gate-submit,
.resource-gate-error,
.resource-gate-privacy {
    grid-column: 1 / -1;
}

.resource-gate-error {
    min-height: 1.3em;
    margin: 0;
    color: #8d1e19;
    font-weight: 800;
}

.resource-gate-privacy {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.45;
}

.resource-gate-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 560px) {
    .resource-gate-panel { padding: 1.5rem; }
    .resource-gate-form { grid-template-columns: 1fr; }
    .resource-gate-submit,
    .resource-gate-error,
    .resource-gate-privacy { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .resource-gate::backdrop { backdrop-filter: none; }
}
