/* =====================================================================
   KPMG Resolve landing page
   Base layout, navigation, hero video and fade-in rules first, then the
   page's `rv-` components. main.js drives .nav (sticky and mobile menu),
   .hero-media / .hero-video (video rotation) and .fade-in.
   ===================================================================== */

/* ===================================
   Google Fonts Import - Brand Typography
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&family=Open+Sans+Condensed:wght@300;700&display=swap');

/* ===================================
   Base Variables
   =================================== */

:root {
    --body-bg: #FFFFFF;
    --text-main: #1F2937;
    --white: #FFFFFF;

    --font-family-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-family-heading: 'Open Sans Condensed', 'Open Sans', sans-serif;
    --font-size-base: 16px;

    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;

    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

/* ===================================
   Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--text-main);
    background: var(--body-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-3xl) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-2xl) 0;
    }
}

/* ===================================
   Typography
   =================================== */

h1 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-family-body);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* ===================================
   Navigation
   Colours and the mobile menu are set in the Navigation rules below.
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-base);
    background: transparent;
}

.nav.scrolled {
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all var(--transition-fast);
}

/* ===================================
   Hero Video
   =================================== */

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 500ms ease-in-out;
    will-change: opacity;
}

.hero-video.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

/* ===================================
   Animations
   =================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================================
   Page components
   Every component rule is namespaced `rv-`. Palette follows the Resolve
   portal UI.
   ===================================================================== */

:root {
    --rv-navy: #00338D;
    --rv-navy-deep: #001A4D;
    --rv-ink: #0B1733;
    --rv-cobalt: #1E49E2;
    --rv-purple: #7213EA;
    --rv-pink: #FD349C;
    --rv-cyan: #00B8F5;
    --rv-teal: #00C2A8;
    --rv-amber: #F5A100;
    --rv-gray-900: #1F2937;
    --rv-gray-700: #374151;
    --rv-gray-600: #4B5563;
    --rv-gray-500: #6B7280;
    --rv-gray-400: #9CA3AF;
    --rv-gray-300: #D1D5DB;
    --rv-gray-200: #E5E7EB;
    --rv-gray-100: #F1F4F9;
    --rv-gray-50: #F7F9FC;
    --rv-white: #FFFFFF;
    --rv-radius: 14px;
    --rv-radius-sm: 8px;
    --rv-shadow-frame: 0 30px 80px -20px rgba(0, 26, 77, 0.45), 0 10px 30px -10px rgba(0, 26, 77, 0.25);
    --rv-shadow-card: 0 1px 2px rgba(11, 23, 51, 0.06), 0 8px 24px -12px rgba(11, 23, 51, 0.18);
    --rv-condensed: 'Open Sans Condensed', 'Open Sans', sans-serif;
}

.rv-body { background: var(--rv-white); color: var(--rv-gray-900); }

.rv-section { padding: 112px 0; position: relative; }
.rv-section--tint { background: var(--rv-gray-50); }
.rv-section--navy { background: var(--rv-navy); color: var(--rv-white); }
@media (max-width: 768px) { .rv-section { padding: 72px 0; } }

.rv-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rv-cobalt);
    margin-bottom: 14px;
}
.rv-section--navy .rv-eyebrow { color: var(--rv-cyan); }

.rv-h2 {
    font-family: var(--rv-condensed);
    font-weight: 700;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--rv-ink);
    margin-bottom: 18px;
}
.rv-section--navy .rv-h2 { color: var(--rv-white); }

.rv-lede {
    font-size: 19px;
    line-height: 1.6;
    color: var(--rv-gray-600);
    max-width: 720px;
}
.rv-section--navy .rv-lede { color: rgba(255, 255, 255, 0.82); }

.rv-head { margin-bottom: 56px; }
.rv-head--center { text-align: center; }
.rv-head--center .rv-lede { margin: 0 auto; }

/* ---------- Buttons ---------- */
.rv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.rv-btn:hover { transform: translateY(-2px); }
.rv-btn:focus-visible { outline: 3px solid var(--rv-cyan); outline-offset: 3px; }
.rv-btn--primary { background: var(--rv-white); color: var(--rv-navy); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); }
.rv-btn--primary:hover { background: #EEF3FF; }
.rv-btn--ghost { background: rgba(255, 255, 255, 0.08); color: var(--rv-white); border-color: rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.rv-btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.rv-btn--solid { background: var(--rv-navy); color: var(--rv-white); }
.rv-btn--solid:hover { background: var(--rv-cobalt); }
.rv-btn--sm { padding: 10px 18px; font-size: 14px; }
.rv-btn svg { width: 16px; height: 16px; }

/* ---------- Navigation (extends .nav) ---------- */
.rv-nav { padding: 18px 0; }
.rv-nav.scrolled { background: rgba(0, 26, 77, 0.94); padding: 12px 0; }
.rv-nav .nav-logo { gap: 10px; text-decoration: none; }
.rv-nav .rv-logo-img { width: 64px; height: auto; display: block; }
.rv-nav .rv-logo-word {
    font-family: var(--rv-condensed);
    font-size: 26px;
    font-weight: 700;
    color: var(--rv-white);
    letter-spacing: 0.01em;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    line-height: 1;
}
.rv-nav .nav-menu { gap: 28px; }
.rv-nav .nav-link { font-size: 15px; font-weight: 600; }
@media (max-width: 960px) {
    .rv-nav .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--rv-navy-deep);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 18px;
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
    }
    .rv-nav .nav-menu.active { transform: translateY(0); opacity: 1; }
    .rv-nav .nav-toggle { display: flex; }
    .rv-nav.scrolled { background: var(--rv-navy-deep); }
}

/* ---------- Hero ---------- */
.rv-hero {
    position: relative;
    padding: 160px 0 0;
    color: var(--rv-white);
    overflow: hidden;
    background: var(--rv-white);
}
.rv-hero .hero-media { bottom: 260px; background: var(--rv-navy-deep); }
.rv-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 500px at 50% 0%, rgba(30, 73, 226, 0.30), transparent 70%),
        linear-gradient(180deg, rgba(0, 26, 77, 0.74) 0%, rgba(0, 51, 141, 0.62) 50%, rgba(0, 26, 77, 0.90) 100%);
}
.rv-hero-inner { position: relative; z-index: 1; text-align: center; }
.rv-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--rv-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 28px;
    backdrop-filter: blur(6px);
}
.rv-pill:hover { background: rgba(255, 255, 255, 0.16); }
.rv-pill-tag { background: var(--rv-cyan); color: var(--rv-navy-deep); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.rv-hero h1 {
    font-family: var(--rv-condensed);
    color: var(--rv-white);
    font-size: clamp(44px, 6.6vw, 84px);
    line-height: 1.0;
    letter-spacing: -0.015em;
    max-width: 1000px;
    margin: 0 auto 24px;
}
.rv-hero h1 .rv-hl { color: var(--rv-cyan); }
.rv-hero-sub {
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 780px;
    margin: 0 auto 36px;
}
.rv-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.rv-hero-frame { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }

/* ---------- Coverage strip ---------- */
.rv-coverage { padding: 56px 0 24px; }
.rv-coverage-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rv-gray-500); margin-bottom: 20px; }
.rv-coverage-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; list-style: none; }
.rv-coverage-list li {
    font-size: 15px;
    font-weight: 600;
    color: var(--rv-gray-700);
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--rv-gray-100);
    border: 1px solid var(--rv-gray-200);
}
.rv-coverage-list li.rv-cov-std { background: #EEF3FF; color: var(--rv-navy); border-color: #CCDAFF; }

.rv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--rv-gray-200); border-bottom: 1px solid var(--rv-gray-200); }
.rv-stat { padding: 28px 24px; text-align: center; }
.rv-stat + .rv-stat { border-left: 1px solid var(--rv-gray-200); }
.rv-stat-v { display: block; font-family: var(--rv-condensed); font-size: 40px; font-weight: 700; color: var(--rv-navy); line-height: 1.1; }
.rv-stat-l { font-size: 14px; color: var(--rv-gray-600); }
@media (max-width: 768px) {
    .rv-stats { grid-template-columns: repeat(2, 1fr); }
    .rv-stat:nth-child(3) { border-left: 0; }
    .rv-stat:nth-child(n+3) { border-top: 1px solid var(--rv-gray-200); }
}

/* ---------- Problem ---------- */
.rv-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .rv-grid-3 { grid-template-columns: 1fr; } }
.rv-card {
    background: var(--rv-white);
    border: 1px solid var(--rv-gray-200);
    border-radius: var(--rv-radius);
    padding: 30px;
    box-shadow: var(--rv-shadow-card);
}
.rv-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; color: var(--rv-ink); letter-spacing: -0.01em; }
.rv-card p { color: var(--rv-gray-600); font-size: 16px; line-height: 1.6; }
.rv-card-num { font-family: var(--rv-condensed); font-weight: 700; font-size: 15px; color: var(--rv-pink); letter-spacing: 0.08em; margin-bottom: 14px; display: block; }
.rv-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #EEF3FF; color: var(--rv-navy); margin-bottom: 18px;
}
.rv-icon svg { width: 22px; height: 22px; }

/* ---------- Two questions ---------- */
.rv-questions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 960px) { .rv-questions { grid-template-columns: 1fr; } }
.rv-q {
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}
.rv-q::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.rv-q--risk::before { background: var(--rv-purple); }
.rv-q--comp::before { background: var(--rv-pink); }
.rv-q-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.rv-q--risk .rv-q-kicker { color: #B98CFF; }
.rv-q--comp .rv-q-kicker { color: #FF8CC6; }
.rv-q h3 { font-family: var(--rv-condensed); font-size: 38px; line-height: 1.05; color: var(--rv-white); margin-bottom: 14px; }
.rv-q p { color: rgba(255, 255, 255, 0.82); font-size: 17px; line-height: 1.6; margin-bottom: 22px; }

.rv-checks { list-style: none; display: grid; gap: 10px; }
.rv-checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--rv-gray-700); }
.rv-checks li::before {
    content: '';
    position: absolute; left: 0; top: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #E6EEFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2300338D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.rv-section--navy .rv-checks li { color: rgba(255, 255, 255, 0.92); }
.rv-section--navy .rv-checks li::before { background-color: rgba(255, 255, 255, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2300B8F5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E"); }

/* ---------- Product tour ---------- */
.rv-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--rv-gray-100);
    border: 1px solid var(--rv-gray-200);
    border-radius: 999px;
    padding: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 48px;
}
.rv-tab {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--rv-gray-600);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.rv-tab:hover { color: var(--rv-navy); }
.rv-tab[aria-selected="true"] { background: var(--rv-navy); color: var(--rv-white); box-shadow: 0 6px 16px -8px rgba(0, 51, 141, 0.7); }
.rv-tab:focus-visible { outline: 3px solid var(--rv-cyan); outline-offset: 2px; }
@media (max-width: 768px) {
    .rv-tabs { border-radius: 16px; justify-content: flex-start; }
    .rv-tab { padding: 8px 14px; font-size: 14px; }
}

.rv-panel { display: grid; grid-template-columns: minmax(280px, 1fr) 2.1fr; gap: 48px; align-items: center; }
.rv-panel[hidden] { display: none; }
.rv-panel .rv-app { grid-template-columns: 132px 1fr; min-width: 780px; }
.rv-tbl--matrix td:first-child { width: 62%; }
.rv-tbl--matrix th:not(:first-child) { text-align: center; }
.rv-panel-copy h3 { font-family: var(--rv-condensed); font-size: 34px; line-height: 1.08; color: var(--rv-ink); margin-bottom: 14px; }
.rv-panel-copy p { color: var(--rv-gray-600); font-size: 17px; line-height: 1.6; margin-bottom: 22px; }
.rv-panel.is-entering .rv-panel-shot { animation: rv-rise 0.45s ease both; }
@keyframes rv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv-panel > * { min-width: 0; }
@media (max-width: 1080px) { .rv-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- Capabilities ---------- */
.rv-cap { padding: 28px; border-radius: var(--rv-radius); border: 1px solid var(--rv-gray-200); background: var(--rv-white); }
.rv-cap h3 { font-size: 18px; margin-bottom: 8px; color: var(--rv-ink); }
.rv-cap p { font-size: 15.5px; line-height: 1.6; color: var(--rv-gray-600); }

/* ---------- Personas ---------- */
.rv-persona { display: flex; flex-direction: column; }
.rv-persona .rv-checks { margin-top: 18px; }
.rv-persona-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rv-purple); margin-bottom: 8px; display: block; }

/* ---------- How it works ---------- */
.rv-how { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: stretch; }
@media (max-width: 960px) { .rv-how { grid-template-columns: 1fr; } }
.rv-steps { list-style: none; display: grid; gap: 16px; counter-reset: rvstep; }
.rv-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 24px; border-radius: var(--rv-radius); background: var(--rv-white); border: 1px solid var(--rv-gray-200); }
.rv-step-n { width: 48px; height: 48px; border-radius: 12px; background: var(--rv-navy); color: var(--rv-white); font-family: var(--rv-condensed); font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.rv-step h3 { font-size: 19px; color: var(--rv-ink); margin-bottom: 6px; }
.rv-step p { color: var(--rv-gray-600); font-size: 16px; line-height: 1.6; }
.rv-hosted {
    border-radius: 20px;
    padding: 36px;
    background: linear-gradient(160deg, var(--rv-navy) 0%, var(--rv-navy-deep) 100%);
    color: var(--rv-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rv-hosted h3 { font-family: var(--rv-condensed); font-size: 32px; color: var(--rv-white); margin-bottom: 12px; line-height: 1.1; }
.rv-hosted p { color: rgba(255, 255, 255, 0.82); margin-bottom: 20px; font-size: 16.5px; line-height: 1.6; }
.rv-hosted .rv-checks li { color: rgba(255, 255, 255, 0.92); }
.rv-hosted .rv-checks li::before { background-color: rgba(255, 255, 255, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2300B8F5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E"); }

/* ---------- Helpdesk band ---------- */
.rv-help { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .rv-help { grid-template-columns: 1fr; gap: 32px; } }
.rv-help-items { display: grid; gap: 14px; }
.rv-help-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 22px; border-radius: var(--rv-radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.rv-help-item .rv-icon { background: rgba(0, 184, 245, 0.16); color: var(--rv-cyan); margin: 0; }
.rv-help-item h3 { color: var(--rv-white); font-size: 17px; margin-bottom: 4px; }
.rv-help-item p { color: rgba(255, 255, 255, 0.78); font-size: 15px; line-height: 1.55; }
.rv-included { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--rv-cyan); font-size: 15px; }
.rv-included svg { width: 18px; height: 18px; flex: none; }

/* ---------- What's new ---------- */
.rv-new { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .rv-new { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rv-new { grid-template-columns: 1fr; } }
.rv-new-card { padding: 26px; border-radius: var(--rv-radius); background: var(--rv-white); border: 1px solid var(--rv-gray-200); }
.rv-new-card h3 { font-size: 18px; color: var(--rv-ink); margin: 10px 0 6px; }
.rv-new-card p { font-size: 15px; line-height: 1.6; color: var(--rv-gray-600); }
.rv-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.rv-badge--new { background: #E7F8FE; color: #0077A6; }
.rv-badge--imp { background: #F1E8FF; color: var(--rv-purple); }
.rv-badge--soon { background: #FFF4DC; color: #9A5B00; }

/* ---------- CTA ---------- */
.rv-cta {
    border-radius: 28px;
    padding: 72px 48px;
    text-align: center;
    color: var(--rv-white);
    background:
        radial-gradient(800px 300px at 15% 0%, rgba(114, 19, 234, 0.45), transparent 70%),
        radial-gradient(700px 300px at 90% 100%, rgba(0, 184, 245, 0.35), transparent 70%),
        linear-gradient(135deg, var(--rv-navy) 0%, var(--rv-navy-deep) 100%);
}
.rv-cta .rv-h2 { color: var(--rv-white); }
.rv-cta p { color: rgba(255, 255, 255, 0.85); font-size: 19px; max-width: 680px; margin: 0 auto 32px; line-height: 1.6; }
@media (max-width: 640px) { .rv-cta { padding: 48px 24px; border-radius: 20px; } }

/* ---------- Not found (templates/404.html) ---------- */
.rv-notfound {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 72vh;
    padding: 160px 0 112px;
    color: var(--rv-white);
    background: var(--rv-navy-deep);
    overflow: hidden;
}
.rv-notfound-inner { position: relative; z-index: 1; text-align: center; }
.rv-notfound .rv-eyebrow { color: var(--rv-cyan); }
.rv-notfound h1 {
    font-family: var(--rv-condensed);
    color: var(--rv-white);
    font-size: clamp(44px, 6.6vw, 84px);
    line-height: 1.0;
    letter-spacing: -0.015em;
    max-width: 900px;
    margin: 0 auto 24px;
}
.rv-notfound h1 .rv-hl { color: var(--rv-cyan); }
.rv-notfound .rv-hero-actions { margin-bottom: 0; }
@media (max-width: 768px) { .rv-notfound { padding: 128px 0 72px; min-height: 0; } }

/* ---------- Footer ---------- */
.rv-footer { background: var(--rv-navy-deep); color: rgba(255, 255, 255, 0.75); padding: 72px 0 40px; }
.rv-footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
@media (max-width: 860px) { .rv-footer-top { grid-template-columns: 1fr 1fr; } }
.rv-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rv-footer-brand img { width: 60px; height: auto; opacity: 0.9; }
.rv-footer-brand span { font-family: var(--rv-condensed); font-weight: 700; font-size: 24px; color: var(--rv-white); padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.3); line-height: 1; }
.rv-footer p { font-size: 14.5px; line-height: 1.6; }
.rv-footer h4 { color: var(--rv-white); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.rv-footer-col a { display: block; color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 15px; padding: 4px 0; }
.rv-footer-col a:hover { color: var(--rv-white); }
.rv-footer .rv-independence { padding: 28px 0 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.92); }
.rv-legal { padding-top: 28px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.55); }
.rv-legal p { font-size: 12.5px; margin-bottom: 10px; }

/* =====================================================================
   Portal mockups. Pure HTML/CSS approximations of the Resolve portal.
   All tenants, people and identifiers are fictitious.
   ===================================================================== */
.rv-frame {
    border-radius: 14px;
    overflow: hidden;
    background: var(--rv-white);
    box-shadow: var(--rv-shadow-frame);
    border: 1px solid rgba(11, 23, 51, 0.12);
    text-align: left;
    color: var(--rv-gray-900);
}
.rv-frame-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #EEF1F6; border-bottom: 1px solid var(--rv-gray-200); }
.rv-frame-dot { width: 11px; height: 11px; border-radius: 50%; background: #D3D8E2; }
.rv-frame-url { margin-left: 12px; flex: 1; max-width: 420px; background: var(--rv-white); border: 1px solid var(--rv-gray-200); border-radius: 6px; font-size: 12px; color: var(--rv-gray-500); padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-frame-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rv-app { display: grid; grid-template-columns: 156px 1fr; min-width: 860px; font-size: 12px; line-height: 1.4; }
.rv-app--compact { grid-template-columns: 1fr; min-width: 640px; }

.rv-side { background: var(--rv-navy); color: var(--rv-white); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.rv-side-brand { display: flex; align-items: center; gap: 6px; padding: 0 8px 16px; }
.rv-side-brand img { width: 34px; height: auto; }
.rv-side-brand span { font-family: var(--rv-condensed); font-size: 13.5px; font-weight: 700; }
.rv-side-h { font-size: 9.5px; letter-spacing: 0.12em; font-weight: 700; opacity: 0.7; padding: 10px 10px 4px; }
.rv-side-i { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.rv-side-i svg { width: 14px; height: 14px; flex: none; }
.rv-side-i.is-on { background: var(--rv-white); color: var(--rv-navy); }

.rv-main { background: #F6F8FB; padding: 16px 18px 18px; min-width: 0; }
.rv-main-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.rv-main-title { font-family: var(--rv-condensed); font-size: 20px; font-weight: 700; color: var(--rv-ink); line-height: 1.1; }
.rv-main-sub { color: var(--rv-gray-500); font-size: 11.5px; margin-top: 2px; }
.rv-main-meta { display: flex; align-items: center; gap: 8px; color: var(--rv-gray-500); font-size: 11px; white-space: nowrap; }
.rv-tbl--findings td:nth-child(5) { width: 42%; }
.rv-tbl--findings td:nth-child(4) { white-space: nowrap; }
.rv-chip-btn { white-space: nowrap; border: 1px solid var(--rv-gray-300); background: var(--rv-white); border-radius: 6px; padding: 4px 9px; font-size: 11px; color: var(--rv-gray-700); font-weight: 600; }
.rv-chip-btn--solid { background: var(--rv-navy); border-color: var(--rv-navy); color: var(--rv-white); }

.rv-panel-box { background: var(--rv-white); border: 1px solid var(--rv-gray-200); border-radius: 10px; overflow: hidden; }
.rv-box-h { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--rv-gray-200); font-weight: 700; font-size: 12.5px; color: var(--rv-ink); }
.rv-box-h a, .rv-box-h .rv-link { color: var(--rv-cobalt); font-weight: 600; font-size: 11px; text-decoration: none; }
.rv-lbl { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rv-gray-500); }

.rv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); }
.rv-kpi { padding: 10px 12px; border-right: 1px solid var(--rv-gray-200); }
.rv-kpi:last-child { border-right: 0; }
.rv-kpi-t { color: var(--rv-gray-600); font-size: 11px; }
.rv-kpi-v { font-size: 15px; font-weight: 700; color: var(--rv-ink); margin: 2px 0; }
.rv-kpi-s { color: var(--rv-gray-500); font-size: 10.5px; }
.rv-kpi svg { display: block; width: 100%; height: 30px; margin-top: 4px; }
.rv-kpi-foot { display: flex; gap: 16px; padding: 7px 12px; border-top: 1px solid var(--rv-gray-200); font-size: 11px; color: var(--rv-gray-600); }

.rv-row-2 { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 10px; margin-top: 10px; }
.rv-row-3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; margin-top: 10px; }

.rv-tenant { margin: 8px; padding: 8px 10px; border: 1px solid var(--rv-gray-200); border-radius: 8px; }
.rv-tenant-top { display: flex; justify-content: space-between; font-weight: 700; color: var(--rv-ink); }
.rv-tenant-sub { color: var(--rv-gray-600); font-size: 11px; margin: 1px 0 6px; }
.rv-spark { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rv-spark span { font-size: 9.5px; color: var(--rv-gray-500); display: block; }
.rv-spark i { display: block; height: 2px; border-radius: 2px; margin-top: 8px; }
.rv-tenant-foot { font-size: 10.5px; color: var(--rv-gray-500); margin-top: 6px; }

.rv-sev { font-weight: 700; font-size: 10.5px; }
.rv-sev--crit { color: var(--rv-pink); }
.rv-sev--high { color: var(--rv-purple); }
.rv-sev--med { color: #0095C8; }
.rv-sev--low { color: var(--rv-gray-500); }

.rv-seg { display: inline-flex; border: 1px solid var(--rv-gray-300); border-radius: 6px; overflow: hidden; font-size: 10.5px; }
.rv-seg span { padding: 3px 8px; color: var(--rv-gray-600); }
.rv-seg span.is-on { background: #E6EEFF; color: var(--rv-navy); font-weight: 700; }

.rv-queue-i { display: grid; grid-template-columns: 18px 1fr; gap: 6px; padding: 7px 12px; border-left: 3px solid transparent; border-bottom: 1px solid var(--rv-gray-100); }
.rv-queue-i.is-crit { border-left-color: var(--rv-pink); }
.rv-queue-i.is-high { border-left-color: var(--rv-purple); }
.rv-queue-n { color: var(--rv-gray-500); font-size: 10.5px; padding-top: 1px; }
.rv-queue-t { font-weight: 600; color: var(--rv-ink); font-size: 12px; }
.rv-queue-m { color: var(--rv-gray-500); font-size: 10.5px; }
.rv-queue-m b { font-weight: 700; }
.rv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.rv-dot--active { background: var(--rv-purple); }
.rv-dot--partial { background: var(--rv-cobalt); }
.rv-dot--mit { background: var(--rv-teal); }
.rv-dot--na { background: transparent; border: 1.5px solid var(--rv-gray-300); }

.rv-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.rv-tbl th { text-align: left; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rv-gray-500); font-weight: 700; padding: 7px 10px; background: #F6F8FB; border-bottom: 1px solid var(--rv-gray-200); white-space: nowrap; }
.rv-tbl td { padding: 7px 10px; border-bottom: 1px solid var(--rv-gray-100); vertical-align: top; color: var(--rv-gray-700); }
.rv-tbl td.rv-c { text-align: center; }
.rv-tbl tr:last-child td { border-bottom: 0; }
.rv-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; }
.rv-link-t { color: var(--rv-cobalt); }
.rv-muted { color: var(--rv-gray-500); font-size: 10.5px; }

.rv-bar { margin: 8px 12px 10px; }
.rv-bar-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--rv-ink); }
.rv-bar-top b { font-weight: 700; }
.rv-bar-track { height: 5px; border-radius: 4px; background: var(--rv-gray-200); margin-top: 5px; overflow: hidden; }
.rv-bar-track i { display: block; height: 100%; background: var(--rv-navy); border-radius: 4px; }

.rv-user { padding: 7px 12px; border-left: 3px solid var(--rv-pink); border-bottom: 1px solid var(--rv-gray-100); }
.rv-user-n { color: var(--rv-ink); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rv-pill-sev { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.rv-pill-sev--crit { color: #D4167A; background: #FFE9F4; border-color: #FFC2E1; }
.rv-pill-sev--high { color: var(--rv-purple); background: #F3EBFF; border-color: #DCC6FF; }
.rv-pill-sev--med { color: #0077A6; background: #E5F7FE; border-color: #B8EAFC; }
.rv-pill-sev--low { color: var(--rv-gray-600); background: var(--rv-gray-100); border-color: var(--rv-gray-300); }
.rv-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--rv-gray-300); color: var(--rv-gray-700); background: var(--rv-white); margin-right: 3px; white-space: nowrap; }
.rv-status { color: var(--rv-cobalt); font-weight: 600; white-space: nowrap; }

.rv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.rv-tile { background: var(--rv-white); border: 1px solid var(--rv-gray-200); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.rv-tile-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--rv-white); flex: none; }
.rv-tile-ic svg { width: 15px; height: 15px; }
.rv-tile-t { font-size: 11px; color: var(--rv-gray-600); }
.rv-tile-v { font-size: 17px; font-weight: 700; color: var(--rv-ink); }

.rv-path-name { font-weight: 600; color: var(--rv-ink); font-size: 12px; }
.rv-path-desc { color: var(--rv-gray-500); font-size: 10.5px; margin-top: 2px; }
.rv-legend { display: flex; gap: 14px; padding: 8px 12px; font-size: 10.5px; color: var(--rv-gray-600); border-top: 1px solid var(--rv-gray-200); }
.rv-legend span { display: inline-flex; align-items: center; gap: 5px; }

.rv-expand { background: #FAFBFE; }
.rv-expand td { padding: 0 10px 12px 34px; }
.rv-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-ev-box { border: 1px solid var(--rv-gray-200); border-radius: 8px; padding: 9px 10px; background: var(--rv-white); }
.rv-ev-box ol { margin: 4px 0 0 16px; padding: 0; color: var(--rv-gray-700); }
.rv-ev-box li { margin: 2px 0; }
.rv-kv { display: grid; grid-template-columns: 96px 1fr; gap: 2px 8px; margin-top: 4px; }
.rv-kv dt { color: var(--rv-gray-500); }
.rv-kv dd { color: var(--rv-ink); margin: 0; }
.rv-ev-actions { display: flex; gap: 6px; margin-top: 8px; }

.rv-threat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rv-threat { background: var(--rv-white); border: 1px solid var(--rv-gray-200); border-radius: 10px; padding: 10px 12px; }
.rv-threat-top { display: flex; justify-content: space-between; gap: 8px; }
.rv-threat-n { font-weight: 700; color: var(--rv-ink); font-size: 12.5px; }
.rv-threat-v { font-size: 20px; font-weight: 700; color: var(--rv-navy); line-height: 1; }
.rv-threat-d { color: var(--rv-gray-500); font-size: 10.5px; margin: 3px 0 7px; min-height: 28px; }
.rv-mini { display: inline-block; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 3px; }
.rv-mini--crit { background: #FFE9F4; color: #D4167A; }
.rv-mini--high { background: #F3EBFF; color: var(--rv-purple); }
.rv-mini--med { background: #E5F7FE; color: #0077A6; }
.rv-mini--low { background: var(--rv-gray-100); color: var(--rv-gray-600); }
.rv-threat-tags { margin-top: 6px; }

.rv-stack { margin-top: 10px; padding: 10px 12px 12px; }
.rv-stack-row { display: grid; grid-template-columns: 140px 1fr 40px; gap: 10px; align-items: center; margin: 6px 0; font-size: 11px; color: var(--rv-gray-700); }
.rv-stack-bar { height: 12px; display: flex; border-radius: 3px; overflow: hidden; background: var(--rv-gray-100); }
.rv-stack-bar i { display: block; height: 100%; }
.rv-stack-row b { text-align: right; color: var(--rv-ink); }

.rv-app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.rv-app-kpi { background: var(--rv-white); border: 1px solid var(--rv-gray-200); border-radius: 10px; padding: 10px 12px; }
.rv-app-kpi-top { display: flex; justify-content: space-between; align-items: center; }
.rv-app-kpi-ic { width: 26px; height: 26px; border-radius: 7px; background: #F3EBFF; color: var(--rv-purple); display: flex; align-items: center; justify-content: center; }
.rv-app-kpi-ic svg { width: 14px; height: 14px; }
.rv-app-kpi-v { font-size: 19px; font-weight: 700; color: var(--rv-purple); }
.rv-app-kpi-t { font-weight: 700; color: var(--rv-ink); font-size: 11.5px; margin-top: 6px; }
.rv-app-kpi-d { color: var(--rv-gray-500); font-size: 10.5px; margin-top: 2px; }

.rv-filters { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--rv-gray-200); }
.rv-filter { font-size: 10.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--rv-gray-300); color: var(--rv-gray-700); background: var(--rv-white); }
.rv-filter.is-on { background: var(--rv-navy); border-color: var(--rv-navy); color: var(--rv-white); }
.rv-filter-l { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--rv-gray-500); margin: 0 4px 0 6px; }
.rv-search { flex: 0 0 220px; border: 1px solid var(--rv-gray-300); border-radius: 6px; padding: 4px 9px; color: var(--rv-gray-400); font-size: 11px; background: var(--rv-white); margin-right: 6px; }

.rv-rep-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--rv-gray-200); }
.rv-rep-tab { padding: 6px 10px 8px; font-size: 12px; color: var(--rv-gray-600); border-bottom: 2px solid transparent; }
.rv-rep-tab.is-on { color: var(--rv-navy); border-bottom-color: var(--rv-navy); font-weight: 700; background: #EEF3FF; border-radius: 6px 6px 0 0; }
.rv-rep-tab em { font-style: normal; font-size: 10px; background: var(--rv-gray-100); border-radius: 999px; padding: 0 6px; margin-left: 4px; color: var(--rv-gray-600); }
.rv-rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.rv-rep { border: 1px solid var(--rv-gray-200); border-radius: 10px; padding: 10px 12px; background: var(--rv-white); }
.rv-rep.is-on { border-color: var(--rv-cobalt); box-shadow: 0 0 0 2px #DCE5FF; }
.rv-rep-h { display: flex; gap: 8px; align-items: flex-start; }
.rv-rep-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--rv-navy); color: var(--rv-white); display: flex; align-items: center; justify-content: center; flex: none; }
.rv-rep-ic svg { width: 14px; height: 14px; }
.rv-rep-t { font-weight: 700; color: var(--rv-ink); font-size: 12px; }
.rv-rep-d { color: var(--rv-gray-500); font-size: 10.5px; margin-top: 2px; }
.rv-rep-f { margin-top: 8px; font-size: 9.5px; letter-spacing: 0.06em; color: var(--rv-gray-500); font-weight: 700; }
.rv-aud { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 999px; background: #EEF3FF; color: var(--rv-navy); margin: 6px 3px 0 0; }
.rv-rep-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
.rv-radio { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border: 1px solid var(--rv-gray-200); border-radius: 8px; margin-top: 6px; }
.rv-radio.is-on { background: #F1F5FF; border-color: #C9D7FF; }
.rv-radio i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--rv-gray-400); display: inline-block; }
.rv-radio.is-on i { border: 4px solid var(--rv-cobalt); }
.rv-gen { display: block; text-align: center; background: var(--rv-navy); color: var(--rv-white); border-radius: 7px; padding: 7px; font-weight: 700; margin-top: 8px; }

/* Narrow screens: drop the mockup sidebar so the product view stays legible;
   anything still wider than the frame scrolls inside the frame, never the page. */
@media (max-width: 900px) {
    .rv-app, .rv-panel .rv-app { grid-template-columns: 1fr; min-width: 660px; }
    .rv-side { display: none; }
}

@media (max-width: 640px) {
    /* Hero mockup becomes a teaser on phones: cropped with a soft fade. */
    .rv-hero-frame .rv-frame-scroll { max-height: 440px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
    .rv-hero { padding-top: 128px; }
    .rv-hero .hero-media { bottom: 180px; }
    .rv-hero-actions { margin-bottom: 44px; }
    .rv-q, .rv-hosted { padding: 28px; }
    .rv-q h3 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .rv-btn, .rv-tab { transition: none; }
    .rv-btn:hover { transform: none; }
    .rv-panel.is-entering .rv-panel-shot { animation: none; }
}

/* ===================================
   OneTrust Cookie Banner
   The banner layout comes from the OneTrust template for this domain. Pin any
   centered or floating template to a full-width bar at the bottom; `otFlat` is
   already one. Scoped under #onetrust-consent-sdk to outrank the styles the SDK
   injects after this sheet.
   =================================== */
#onetrust-consent-sdk #onetrust-banner-sdk:not(.otFlat) {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
}
