/*rh*/
h1 { color:white;}

/* User Access Levels page */
.ual-hero {
    background: linear-gradient(135deg, #0b1630 0%, #14245a 50%, #1d3a86 100%);
    color: #fff;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.ual-hero::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 30%, rgba(94,165,255,.25), transparent 55%),
        radial-gradient(circle at 15% 80%, rgba(255,255,255,.08), transparent 50%);
    pointer-events: none;
}
.ual-hero .container { position: relative; z-index: 1; }
.ual-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 50px;
    align-items: center;
}
.ual-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #cfe1ff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.ual-hero h1 {
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.08;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.ual-lead { font-size: 18px; line-height: 1.55; color: #d9e3f7; max-width: 60ch; margin: 0 0 22px; }
.ual-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ual-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ual-btn-primary { background: #fff; color: #14245a; }
.ual-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ual-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.ual-btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Hero visual: stacked role badges */
.ual-roles-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    padding: 22px;
    backdrop-filter: blur(8px);
}
.ual-role-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 10px;
}
.ual-role-row:last-child { margin-bottom: 0; }
.ual-role-row .badge {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4f8cff, #6ea8ff);
    color: #fff; flex-shrink: 0;
}
.ual-role-row .badge.admin { background: linear-gradient(135deg, #ff7a59, #ffa07a); }
.ual-role-row .badge.report { background: linear-gradient(135deg, #34d399, #6ee7b7); }
.ual-role-row strong { display: block; color: #fff; font-size: 15px; }
.ual-role-row span.sub { color: #aabad8; font-size: 12px; }

/* Sections */
.ual-section { padding: 70px 0; background: #fff; }
.ual-section.alt { background: #f6f8fc; }
.ual-section h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 0 0 14px;
    color: #14245a;
    letter-spacing: -0.01em;
}
.ual-section > .container > p { color: #4a5568; font-size: 17px; line-height: 1.6; max-width: 70ch; }

/* Levels grid */
.ual-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 36px;
}
.ual-level {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 1px 2px rgba(20,36,90,.04);
    transition: transform .15s ease, box-shadow .15s ease;
}
.ual-level:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,36,90,.08); }
.ual-level .pill {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #14245a;
    background: #e7eefb;
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.ual-level.admin .pill { color: #9a3412; background: #ffe8de; }
.ual-level.report .pill { color: #065f46; background: #d1fae5; }
.ual-level h3 { margin: 0 0 8px; font-size: 20px; color: #14245a; }
.ual-level p { color: #4a5568; font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.ual-level ul { list-style: none; padding: 0; margin: 0; }
.ual-level ul li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: #2d3748;
    font-size: 14px;
}
.ual-level ul li::before {
    content: "";
    position: absolute; left: 0; top: 12px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4f8cff;
}
.ual-level.admin ul li::before { background: #ff7a59; }
.ual-level.report ul li::before { background: #34d399; }

/* Capability comparison table */
.ual-table-wrap { margin-top: 32px; overflow-x: auto; }
.ual-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20,36,90,.04);
    min-width: 640px;
}
.ual-table th, .ual-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e3e8f0;
    font-size: 14px;
}
.ual-table thead th {
    background: #14245a;
    color: #fff;
    font-weight: 600;
    letter-spacing: .02em;
}
.ual-table tbody tr:last-child td { border-bottom: 0; }
.ual-table td.yes { color: #15803d; font-weight: 600; }
.ual-table td.no { color: #b91c1c; }
.ual-table td.partial { color: #b45309; }

/* Scoping section */
.ual-scope {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 36px;
    align-items: stretch;
}
.ual-scope-card {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    padding: 28px;
}
.ual-scope-card h3 {
    margin: 0 0 10px;
    color: #14245a;
    font-size: 20px;
    display: flex; align-items: center; gap: 10px;
}
.ual-scope-card h3 .ico {
    width: 32px; height: 32px; border-radius: 8px;
    background: #e7eefb; color: #14245a;
    display: inline-flex; align-items: center; justify-content: center;
}
.ual-scope-card p { color: #4a5568; font-size: 14px; line-height: 1.55; }
.ual-tree {
    margin: 14px 0 0; padding: 14px 16px;
    background: #f6f8fc;
    border: 1px dashed #c9d3e6;
    border-radius: 10px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    color: #2d3748;
    line-height: 1.7;
}
.ual-tree .muted { color: #94a3b8; }
.ual-tree .restricted { color: #b91c1c; text-decoration: line-through; }

/* CTA band */
.ual-cta-band {
    background: linear-gradient(135deg, #14245a, #1d3a86);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.ual-cta-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); }
.ual-cta-band p { color: #d9e3f7; margin: 0 auto 20px; max-width: 60ch; }

@media (max-width: 900px) {
    .ual-hero-grid, .ual-scope { grid-template-columns: 1fr; }
    .ual-levels { grid-template-columns: 1fr; }
}
