/* RiskMap — NR-1 · clean & responsive */
:root {
    --rm-bg: #0b1220;
    --rm-surface: #111a2e;
    --rm-card: #151f35;
    --rm-border: rgba(148, 163, 184, 0.12);
    --rm-text: #e8edf7;
    --rm-muted: #94a3b8;
    --rm-accent: #22d3ee;
    --rm-accent-dim: rgba(34, 211, 238, 0.15);
    --rm-accent-2: #a78bfa;
    --rm-radius: 1rem;
    --rm-radius-lg: 1.25rem;
    --rm-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --rm-font: "DM Sans", system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--rm-font);
    background: var(--rm-bg);
    color: var(--rm-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.skip-link:focus {
    z-index: 1080;
}

.rm-nav {
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rm-border);
}

.rm-logo {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--rm-accent), #0ea5e9);
    color: #0b1220;
}

.rm-logo--sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.65rem;
}

.navbar .nav-link {
    color: rgba(232, 237, 247, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

.btn-accent {
    --bs-btn-color: #0b1220;
    --bs-btn-bg: var(--rm-accent);
    --bs-btn-border-color: var(--rm-accent);
    --bs-btn-hover-bg: #67e8f9;
    --bs-btn-hover-border-color: #67e8f9;
    --bs-btn-focus-shadow-rgb: 34, 211, 238;
    font-weight: 600;
    border-radius: 999px;
}

.rm-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0;
    overflow: hidden;
}

.rm-hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 120%;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34, 211, 238, 0.18), transparent 55%),
        radial-gradient(ellipse 40% 35% at 80% 20%, rgba(167, 139, 250, 0.12), transparent 50%);
    pointer-events: none;
}

.rm-hero-inner {
    position: relative;
    z-index: 1;
}

.rm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rm-accent);
    background: var(--rm-accent-dim);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.rm-title {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.rm-lead {
    color: var(--rm-muted);
    font-size: 1.125rem;
    max-width: 36rem;
}

.rm-panel {
    background: linear-gradient(160deg, var(--rm-card) 0%, var(--rm-surface) 100%);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow);
}

.rm-price {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #fff, var(--rm-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rm-section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.rm-card {
    background: var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.rm-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.25);
}

.rm-card .card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(34, 211, 238, 0.12);
    color: var(--rm-accent);
}

.rm-list-check li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--rm-muted);
}

.rm-list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--rm-accent);
    font-weight: 700;
}

.rm-footer {
    background: #060a12;
    border-top: 1px solid var(--rm-border);
}

.rm-cta-box {
    border-radius: var(--rm-radius-lg);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.08));
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.text-muted.rm-muted-custom {
    color: var(--rm-muted) !important;
}

.rm-muted-custom {
    color: var(--rm-muted) !important;
}

.rm-hero .text-secondary,
.rm-card .text-secondary,
.rm-quiz-box .text-secondary {
    color: #b6c3d8 !important;
}

.accordion-button .rm-muted-custom,
.accordion-button .small,
.accordion-button small {
    color: #c7d5e8 !important;
}

/* Roteiro page */
.rm-timeline .rm-step-num {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--rm-accent-dim);
    color: var(--rm-accent);
    flex-shrink: 0;
}

/* Accordion tema escuro */
.rm-accordion .accordion-button {
    color: var(--rm-text);
}

.rm-accordion .accordion-button:not(.collapsed) {
    color: #fff;
    background: rgba(34, 211, 238, 0.08);
}

.rm-accordion .accordion-button::after {
    filter: invert(1) grayscale(1);
    opacity: 0.6;
}

.rm-accordion .accordion-collapse {
    transition: height 0.25s ease;
}

.rm-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.15rem rgba(34, 211, 238, 0.25);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
        border-top: 1px solid var(--rm-border);
        margin-top: 0.5rem;
    }
}

.rm-module-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
}

.rm-quiz-box {
    background: rgba(15, 23, 42, 0.6);
}

.rm-detail-box {
    background: rgba(15, 23, 42, 0.55);
}

.rm-quiz-exp {
    color: #cfe8ff;
    line-height: 1.5;
}

.rm-study-title {
    color: #7dd3fc;
}

.rm-lesson {
    background: rgba(15, 23, 42, 0.45);
}

.rm-lesson-text {
    color: #d8e2f0;
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.rm-lesson-text:last-child {
    margin-bottom: 0;
}

.rm-pres-slide {
    display: none;
}

.rm-pres-slide.is-active {
    display: block;
    animation: rmFadeIn 0.25s ease;
}

@keyframes rmFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rm-pres-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.rm-pres-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    transition: width 0.28s ease;
}

.rm-pres-list li {
    color: #c7d5e8;
}

.rm-pres-aula-tag {
    letter-spacing: 0.04em;
}

.rm-pres-stage {
    min-height: 280px;
    padding-bottom: 1.25rem;
}

.rm-pres-nav {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    position: relative;
    z-index: 4;
    row-gap: 0.75rem !important;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 18, 32, 0.92) 30%);
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0 0 0.375rem 0.375rem;
}

.rm-slide-visual-col .rm-visual-player {
    margin-bottom: 0;
}

.rm-text-by-img-block {
    transition: opacity 0.18s ease;
    white-space: pre-line;
    line-height: 1.65;
}

.rm-visual-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rm-visual-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.rm-visual-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-slide-panel {
    position: relative;
}

.rm-slide-panel.is-fullscreen-active {
    padding: 1.25rem;
    background: var(--rm-bg);
    overflow: auto;
}

.rm-slide-panel:fullscreen {
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--rm-bg);
    overflow: auto;
}

.rm-slide-panel:-webkit-full-screen {
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--rm-bg);
    overflow: auto;
}

@media (min-width: 992px) {
    .rm-slide-split {
        min-height: 320px;
    }

    .rm-slide-text-col .rm-slide-text-inner {
        min-height: 100%;
    }
}

@media (max-width: 991.98px) {
    .rm-slide-visual-col {
        order: 0;
    }

    .rm-slide-text-col {
        order: 1;
    }
}

.rm-quiz-option {
    border-color: rgba(148, 163, 184, 0.35);
}

.rm-quiz-option:hover:not(:disabled) {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(34, 211, 238, 0.12);
}

.rm-quiz-option:disabled {
    opacity: 1;
}
