/* ============================================================
   Wyvern Compliance — Customer Portal Styles
   WBS-aligned design with compliance twist
   ============================================================ */

:root {
    --primary: #1e3a5f;
    --primary-dark: #0f2440;
    --primary-light: #dbeafe;
    --primary-50: #eff6ff;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-light: #bfdbfe;
    --success: #059669;
    --success-dark: #047857;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-dark: #b45309;
    --warning-light: #fef3c7;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.04), 0 1px 2px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.03);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    background: #ffffff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-dark); text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

::selection { background: var(--primary-light); color: var(--primary-dark); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border: none; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; line-height: 1.5;
    justify-content: center; letter-spacing: 0.02em; text-transform: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: white; box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3); }
.btn-primary:hover { box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-50); border-color: var(--primary-dark); color: var(--primary-dark); }
/* Outline buttons inside dark navbar */
.navbar .btn-outline { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
.navbar .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-white { background: white; color: var(--primary-dark); box-shadow: var(--shadow-md); font-weight: 700; }
.btn-white:hover { background: var(--gray-50); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.btn-success { background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%); color: white; box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.35); }
.btn-success:hover { box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3); }
.btn-danger { background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%); color: white; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: var(--radius); font-weight: 700; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(0.3); }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: #132e4f;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.2); background: #0f2640; }
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-brand {
    display: flex; align-items: center; gap: 0.625rem;
    font-size: 1.3rem; font-weight: 800; color: #ffffff;
    text-decoration: none; letter-spacing: -0.02em;
}
.nav-brand i {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    color: rgba(255,255,255,0.7); font-weight: 500; font-size: 0.9rem;
    transition: color 0.2s ease; position: relative; text-transform: uppercase;
    letter-spacing: 0.04em;
}
.nav-links a:hover { color: #ffffff; text-decoration: none; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: width 0.25s ease; border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }
.nav-user { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; }
.nav-toggle {
    display: none; background: none; border: none; font-size: 1.25rem;
    cursor: pointer; color: rgba(255,255,255,0.8); padding: 0.5rem;
    border-radius: var(--radius-sm); transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* ============ HERO ============ */
.hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    background: linear-gradient(170deg, #132e4f 0%, #1a4270 40%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    color: white;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(96,165,250,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(59,130,246,0.18) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
    pointer-events: none;
}
.hero-content { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 {
    font-size: 3.25rem; font-weight: 800; line-height: 1.12;
    color: white; margin-bottom: 1.5rem; letter-spacing: -0.03em;
}
.hero-sub {
    font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 560px;
    margin: 0 auto 2.5rem; line-height: 1.75; font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-ghost-hero {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2.25rem; border: 2px solid rgba(255,255,255,0.25);
    border-radius: var(--radius); background: transparent; color: white;
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
    transition: all 0.25s ease; text-decoration: none;
}
.btn-ghost-hero:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: white; text-decoration: none; }
.hero-pills { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.25rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
    transition: all 0.25s ease; border: 1px solid transparent;
}
.hero-pill:hover { transform: translateY(-2px); text-decoration: none; }
.pill-compliance { background: rgba(37,99,235,0.2); color: #93bbfd; border-color: rgba(37,99,235,0.3); }
.pill-compliance:hover { background: rgba(37,99,235,0.35); color: #bfdbfe; }
.pill-dse { background: rgba(245,158,11,0.2); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
.pill-dse:hover { background: rgba(245,158,11,0.35); color: #fde68a; }
.pill-msk { background: rgba(16,185,129,0.2); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
.pill-msk:hover { background: rgba(16,185,129,0.35); color: #a7f3d0; }

/* ── Hero Trust Bar ── */
.hero-trust-bar {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 2rem; font-size: 0.8rem; color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.hero-trust-bar span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust-bar i { color: rgba(255,255,255,0.35); }

/* ── Hero CTA pulse ── */
.hero-cta-primary {
    position: relative;
    animation: ctaPulse 2.5s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,99,235,0.25); }
    50% { box-shadow: 0 4px 30px rgba(37,99,235,0.5), 0 0 0 8px rgba(37,99,235,0.08); }
}

/* ── Hero Score Preview (Before/After) ── */
.hero-score-preview {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; margin: 2.5rem auto 2rem; max-width: 440px;
}
.score-before, .score-after { text-align: center; flex: 1; }
.score-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.45);
}
.score-ring { width: 100px; height: 100px; margin: 0 auto; position: relative; }
.score-ring svg { width: 100%; height: 100%; }
.score-value {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    font-size: 1.4rem; font-weight: 800;
}
.score-value-red { color: #fca5a5; }
.score-value-green { color: #6ee7b7; }
.score-status {
    margin-top: 0.5rem; font-size: 0.75rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.65rem; border-radius: 999px;
}
.score-status-red { background: rgba(239,68,68,0.15); color: #fca5a5; }
.score-status-green { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.score-arrow {
    font-size: 1.25rem; color: rgba(255,255,255,0.25);
    animation: arrowBounce 1.5s ease-in-out infinite;
}
@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

/* Animate the green ring on load */
.score-ring-green circle:nth-child(2) {
    animation: ringFill 1.5s ease-out 0.5s both;
}
@keyframes ringFill {
    from { stroke-dashoffset: 264; }
}

/* ============ EXTERNAL WEBSITE REFRESH ============ */
#view-landing #how-it-works,
#view-landing #journey,
#view-landing #products,
#view-landing #compliance-detail,
#view-landing #dse-detail,
#view-landing #msk-detail,
#view-landing #testimonials {
    display: none;
}

#view-landing h1,
#view-landing h2,
#view-landing h3,
#view-landing h4,
#view-landing .section-header h2,
#view-landing .nav-links a {
    letter-spacing: 0;
}

#view-landing .section-header h2,
#view-landing .cta-section h2 {
    text-transform: none;
}

.hero {
    padding: 7.25rem 2rem 2.75rem;
    text-align: left;
    background: #102a43;
}

.hero::before {
    background:
        linear-gradient(90deg, rgba(15,36,64,0.98) 0%, rgba(22,66,112,0.9) 52%, rgba(37,99,235,0.7) 100%),
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
}

.hero::after { display: none; }

.hero-content {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.7fr);
    gap: 2.5rem;
    align-items: center;
}

.external-trust-bar,
.hero-actions {
    justify-content: flex-start;
}

#view-landing .hero-pills {
    display: none;
}

.external-trust-bar {
    grid-column: 1 / -1;
    margin-bottom: -1rem;
    color: rgba(255,255,255,0.72);
}

.hero h1 {
    grid-column: 1;
    max-width: 760px;
    font-size: clamp(2.6rem, 4.6vw, 4.5rem);
    line-height: 1.02;
    margin-bottom: 1.25rem;
    letter-spacing: 0;
}

.hero-sub {
    grid-column: 1;
    max-width: 650px;
    margin: 0 0 2rem;
    color: rgba(255,255,255,0.78);
    font-size: 1.08rem;
}

.hero-actions,
.hero-pills {
    grid-column: 1;
}

.external-hero-visual {
    grid-column: 2;
    grid-row: 2 / span 4;
    align-self: stretch;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.24);
    backdrop-filter: blur(16px);
}

.external-visual-header,
.external-visual-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
}

.external-visual-header strong {
    color: white;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.86rem;
}

.external-rag-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.94);
    color: var(--gray-900);
    box-shadow: var(--shadow-md);
}

.external-rag-row strong,
.external-rag-row small {
    display: block;
}

.external-rag-row small {
    margin-top: 0.15rem;
    color: var(--gray-500);
    font-size: 0.78rem;
}

.external-rag-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: 0 0 14px;
}

.external-visual-footer {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 0.4rem;
}

.external-visual-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.external-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.external-intro h2,
.external-lifecycle h2,
.external-product-strip h2 {
    color: var(--gray-900);
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.12;
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.external-intro p {
    color: var(--gray-600);
    font-size: 1.02rem;
    max-width: 600px;
}

.external-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.external-proof-item,
.external-product-card,
.external-life-step {
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: white;
}

.external-proof-item {
    padding: 1.35rem;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.external-proof-item strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.external-proof-item span {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.55;
}

.external-lifecycle-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.external-life-step {
    padding: 1.25rem;
    min-height: 220px;
    position: relative;
}

.external-life-step span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.external-life-step h3 {
    color: var(--gray-900);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.external-life-step p {
    color: var(--gray-600);
    font-size: 0.88rem;
    line-height: 1.6;
}

.external-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.external-product-card {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    min-height: 310px;
}

.external-product-card > i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-50);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.external-product-card h3 {
    color: var(--gray-900);
    font-size: 1.12rem;
    margin-bottom: 0.7rem;
}

.external-product-card p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
}

.external-product-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 1024px) {
    .hero-content,
    .external-intro-grid {
        grid-template-columns: 1fr;
    }

    .external-hero-visual {
        grid-column: 1;
        grid-row: auto;
        min-height: auto;
    }

    .external-lifecycle-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .external-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 8rem 1rem 3.5rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-actions .btn,
    .btn-ghost-hero {
        width: 100%;
    }

    .external-proof-grid,
    .external-lifecycle-rail,
    .external-product-grid {
        grid-template-columns: 1fr;
    }

    .external-life-step {
        min-height: auto;
    }

    .external-visual-header,
    .external-visual-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ── How It Works Section ── */
.section-how-it-works { background: var(--gray-50); }
.how-steps {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0; flex-wrap: wrap; margin-top: 2rem;
}
.how-step {
    flex: 1; min-width: 200px; max-width: 240px; text-align: center;
    padding: 1.5rem 1rem; position: relative;
}
.how-step-num {
    width: 28px; height: 28px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-size: 0.75rem;
    font-weight: 700; background: var(--primary); color: white;
    margin-bottom: 0.75rem;
}
.how-step-icon {
    font-size: 1.5rem; color: var(--primary); margin-bottom: 0.75rem;
}
.how-step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.how-step p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.6; }
.how-step-tag {
    display: inline-block; margin-top: 0.75rem; padding: 0.25rem 0.75rem;
    border-radius: 999px; font-size: 0.7rem; font-weight: 700;
    background: var(--primary-light); color: var(--primary);
}
.how-step-tag-green {
    background: var(--success-light); color: var(--success);
}
.how-step-connector {
    display: flex; align-items: center; padding-top: 3rem;
    color: var(--gray-300); font-size: 0.9rem;
}
@media (max-width: 768px) {
    .how-step-connector { display: none; }
    .how-steps { flex-direction: column; align-items: center; }
    .how-step { max-width: 100%; }
}

/* ── Results Stats ── */
.results-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; margin-bottom: 3rem;
}
.result-stat {
    text-align: center; padding: 1.75rem 1rem;
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.result-stat-number {
    font-size: 2.75rem; font-weight: 800; color: var(--primary);
    line-height: 1;
}
.result-stat-number span { font-size: 1.5rem; font-weight: 700; }
.result-stat-label {
    font-size: 0.8rem; color: var(--gray-500); margin-top: 0.5rem;
    font-weight: 500;
}
@media (max-width: 768px) {
    .results-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .result-stat-number { font-size: 2rem; }
}

/* ── CTA Reassurance ── */
.cta-reassurance {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
    margin-top: 1.25rem; font-size: 0.8rem; color: rgba(255,255,255,0.55);
    font-weight: 500;
}
.cta-reassurance span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ── Auth Reassurance ── */
.auth-reassurance {
    display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
    margin-top: 0.75rem; font-size: 0.75rem; color: var(--gray-400);
    font-weight: 500;
}
.auth-reassurance span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ── Dashboard: Highlight card + urgency badge ── */
.dash-card-highlight {
    border: 2px solid var(--primary) !important;
    background: linear-gradient(135deg, #eef2ff 0%, #f9fafb 100%) !important;
}
.dash-card-urgency {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.25rem 0.75rem; border-radius: 999px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; background: var(--primary); color: white;
    margin-bottom: 0.75rem;
}

/* ── Dashboard: Journey Preview ── */
.dash-journey-preview { margin-top: 0.75rem; }
.dash-journey-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.5rem 0; font-size: 0.85rem; color: var(--gray-600);
}
.djp-num {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; background: var(--gray-200);
    color: var(--gray-500);
}
.djp-tag {
    display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px;
    font-size: 0.65rem; font-weight: 700; background: var(--primary-light);
    color: var(--primary); margin-left: 0.25rem;
}

/* ── Compliance Score Card (Dashboard) ── */
.compliance-score-card {
    background: white; border-radius: var(--radius); padding: 1.75rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}
.score-main {
    display: flex; align-items: center; gap: 2rem;
}
.score-ring-lg {
    width: 130px; height: 130px; flex-shrink: 0; position: relative;
}
.score-ring-lg svg { width: 100%; height: 100%; }
.score-ring-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    text-align: center;
}
.score-ring-number { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1; }
.score-ring-label { display: block; font-size: 0.6rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }
.score-ring-animated {
    animation: scoreRingDraw 1.2s ease-out both;
}
@keyframes scoreRingDraw {
    from { stroke-dashoffset: 264; }
}
.score-details { flex: 1; }
.score-target { margin-top: 0.5rem; }
.score-target-bar {
    height: 6px; background: var(--gray-200); border-radius: 3px;
    position: relative; overflow: visible;
}
.score-target-fill {
    height: 100%; border-radius: 3px; transition: width 1s ease;
}
.score-target-marker {
    position: absolute; top: -4px; transform: translateX(-50%);
}
.score-target-marker span {
    font-size: 0.6rem; font-weight: 700; color: var(--gray-400);
    background: white; padding: 0 0.25rem;
}
@media (max-width: 640px) {
    .score-main { flex-direction: column; text-align: center; }
    .hero-score-preview { flex-direction: row; gap: 0.75rem; }
    .score-ring { width: 80px; height: 80px; }
    .score-value { font-size: 1.1rem; }
}

/* ============ COMPLIANCE DETAIL ============ */
.badge-compliance {
    display: inline-block; padding: 0.35rem 1rem; border-radius: 30px;
    background: #eff6ff; color: #1d4ed8; font-size: 0.8rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.compliance-accent { color: var(--primary); }
.detail-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.detail-feature-list { display: flex; flex-direction: column; gap: 1.25rem; }
.detail-feat {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.25rem; border-radius: var(--radius); background: white;
    border: 1px solid var(--gray-200); transition: all 0.3s ease;
}
.detail-feat:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.detail-feat-icon {
    width: 42px; height: 42px; min-width: 42px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.detail-feat h4 { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.2rem; }
.detail-feat p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }
.detail-process h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.5rem; }
.detail-process { display: flex; flex-direction: column; gap: 1rem; }
.process-step {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem; border-radius: var(--radius-sm);
    background: white; border: 1px solid var(--gray-200);
}
.process-num {
    width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
    background: var(--primary); color: white; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}
.process-step h4 { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.15rem; }
.process-step p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.5; }
.detail-regulations { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.reg-pill {
    font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.75rem;
    border-radius: 20px; background: var(--primary-50); color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
    display: inline-block; padding: 0.35rem 1rem; border-radius: 30px;
    background: var(--primary-50); color: var(--accent); font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.section-header h2 {
    font-size: 2.25rem; font-weight: 800; color: var(--gray-900);
    margin-bottom: 1rem; letter-spacing: -0.02em;
    text-transform: uppercase;
}
.section-header p { font-size: 1.05rem; color: var(--gray-500); max-width: 650px; margin: 0 auto; line-height: 1.7; }

/* ============ PRICING ============ */

/* Pricing flow indicator */
.pricing-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.pricing-flow-step {
    text-align: center; padding: 1.25rem 1.5rem;
    background: white; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); min-width: 180px;
    transition: all 0.3s ease;
}
.pricing-flow-step:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.pricing-flow-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin: 0 auto 0.75rem;
}
.pricing-flow-label { font-weight: 700; color: var(--gray-900); font-size: 0.95rem; margin-bottom: 0.25rem; }
.pricing-flow-desc { color: var(--gray-400); font-size: 0.8rem; }
.pricing-flow-arrow { color: var(--primary); font-size: 1.25rem; opacity: 0.6; }

/* Pricing grid */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1060px; margin: 0 auto; }
.pricing-grid-4 { max-width: 1320px; grid-template-columns: repeat(4, 1fr); }
.pricing-card {
    background: white; border-radius: var(--radius-lg); padding: 2.5rem 2rem;
    border: 1px solid var(--gray-200);
    text-align: center; position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent;
    background: linear-gradient(to bottom, white 0%, var(--gray-50) 100%);
}
.pricing-card.featured {
    border: 2px solid var(--accent); transform: scale(1.04);
    box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.2); z-index: 10;
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-8px); box-shadow: 0 20px 50px -15px rgba(37, 99, 235, 0.25); }
.pricing-popular {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white; padding: 0.375rem 1.25rem;
    border-radius: 30px; font-size: 0.75rem; font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35); letter-spacing: 0.04em;
    text-transform: uppercase; white-space: nowrap;
}

/* Tier badge (exposure level label at top of card) */
.pricing-tier-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem; border-radius: 30px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 0.75rem;
}
.green-badge { background: #d1fae5; color: #065f46; }
.amber-badge { background: #fef3c7; color: #92400e; }
.red-badge { background: #fee2e2; color: #991b1b; }
.redplus-badge { background: #fce7f3; color: #831843; }

.pricing-tier { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.375rem; }
.green-tier { color: #059669; }
.amber-tier { color: var(--warning-dark); }
.red-tier { color: var(--danger); }
.redplus-tier { color: var(--danger-dark); }

/* Green card accent */
.pricing-card.green-card {
    border-color: #a7f3d0;
    background: linear-gradient(to bottom, #f0fdf4 0%, white 40%);
}
.pricing-card.green-card:hover {
    border-color: #059669;
    box-shadow: 0 10px 40px -10px rgba(5, 150, 105, 0.15);
}
.pricing-card.green-card .pricing-amount { color: #059669; }
.pricing-severity { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 1.5rem; font-weight: 500; font-style: italic; }
.pricing-amount { font-size: 3.25rem; font-weight: 800; color: var(--gray-900); line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.03em; }
.pricing-per { color: var(--gray-400); font-size: 0.9rem; margin-bottom: 2rem; font-weight: 500; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 1rem; flex-grow: 1; }
.pricing-features li { margin-bottom: 1rem; color: var(--gray-600); display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; line-height: 1.5; }
.pricing-features li i { color: var(--success); margin-top: 0.2rem; font-size: 0.9rem; flex-shrink: 0; }

/* Outcome note callout */
.pricing-outcome-note {
    display: flex; align-items: flex-start; gap: 1rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe; border-radius: var(--radius-lg);
    padding: 1.5rem 2rem; margin-top: 2.5rem;
    max-width: 750px; margin-left: auto; margin-right: auto;
    font-size: 0.9rem; color: var(--gray-600); line-height: 1.7;
}
.pricing-outcome-note strong { color: var(--gray-900); }
.pricing-outcome-icon {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; margin-top: 0.1rem;
}

/* Legacy note (keep for backwards compat) */
.pricing-note { text-align: center; color: var(--gray-500); font-size: 0.9rem; margin-top: 3rem; max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.pricing-note i { color: var(--primary); margin-right: 0.4rem; }

/* ============ FAQ ============ */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item {
    background: white; border-radius: var(--radius); margin-bottom: 0.75rem;
    border: 1px solid var(--gray-200); overflow: hidden; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item:hover { border-color: var(--primary-light); transform: translateX(4px); }
.faq-item.open { border-color: var(--accent); border-left: 3px solid var(--accent); box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08); }
.faq-q {
    padding: 1.25rem 1.5rem; display: flex; justify-content: space-between;
    align-items: center; font-weight: 600; font-size: 1rem; color: var(--gray-800);
}
.faq-q i { transition: transform 0.3s ease; color: var(--gray-400); font-size: 1rem; }
.faq-item:hover .faq-q i { color: var(--accent); }
.faq-item.open .faq-q { color: var(--primary-dark); }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--accent); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem; color: var(--gray-500); font-size: 0.95rem; line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 1.5rem 1.25rem; }

/* ============ TESTIMONIALS ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
    background: white; padding: 2.25rem 2rem; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.testimonial-stars { margin-bottom: 1.25rem; color: #fbbf24; font-size: 0.9rem; letter-spacing: 0.1em; }
.testimonial-card > p {
    font-size: 0.95rem; color: var(--gray-600); line-height: 1.7;
    flex-grow: 1; margin-bottom: 1.5rem; font-style: italic;
}
.testimonial-author {
    display: flex; align-items: center; gap: 0.75rem;
    padding-top: 1.25rem; border-top: 1px solid var(--gray-100);
}
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}
.testimonial-author strong { font-size: 0.9rem; color: var(--gray-800); }
.testimonial-author span { font-size: 0.8rem; color: var(--gray-400); }

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, #0a1628 0%, #0f2440 50%, #1e3a5f 100%);
    text-align: center; color: white; padding: 6rem 2rem; position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(37,99,235,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; position: relative; text-transform: uppercase; }
.cta-section p { font-size: 1.05rem; opacity: 0.8; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.75; position: relative; }
.cta-buttons {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.footer {
    padding: 4rem 2rem 0; color: var(--gray-400);
    font-size: 0.85rem; background: var(--gray-900); border-top: none;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col-brand { max-width: 320px; }
.footer-brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.1rem; font-weight: 700; color: white;
    margin-bottom: 0.75rem;
}
.footer-brand i {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-tagline { color: var(--gray-400); font-size: 0.875rem; line-height: 1.65; margin-bottom: 1.25rem; }
.footer-tagline strong { color: rgba(255,255,255,0.8); }
.footer-cert { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.footer-cert-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.75rem; border-radius: 20px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6); font-size: 0.75rem; font-weight: 500;
}
.footer-cert-badge i { color: #34d399; font-size: 0.7rem; }
.footer-heading {
    color: white; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.footer-col-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-links a { color: var(--gray-400); font-size: 0.875rem; transition: color 0.2s; text-decoration: none; }
.footer-col-links a:hover { color: white; }
.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    padding: 1.5rem 0; text-align: center;
}
.footer-bottom p { color: var(--gray-500); font-size: 0.8rem; margin: 0; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--gray-400); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer p { color: var(--gray-500); }

/* ============ ALERTS ============ */
.alert {
    padding: 0.875rem 1.25rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; margin-bottom: 1rem;
}
.alert-error { background: var(--danger-light); color: var(--danger-dark); border: 1px solid #fca5a5; }
.alert-success { background: var(--success-light); color: var(--success-dark); border: 1px solid #6ee7b7; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #93c5fd; }
.alert-warning { background: var(--warning-light); color: var(--warning-dark); border: 1px solid #fcd34d; }

/* ============ AUTH FORMS ============ */
.auth-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 5rem 2rem 2rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-50) 50%, white 100%);
}
.auth-card {
    background: white; padding: 2.75rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl); width: 100%; max-width: 560px;
    border: 1px solid var(--gray-100);
}
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-card h2 { text-align: center; font-size: 1.5rem; margin-bottom: 0.375rem; font-weight: 800; letter-spacing: -0.02em; }
.auth-sub { text-align: center; color: var(--gray-500); margin-bottom: 1.75rem; font-size: 0.95rem; }
.auth-footer {
    text-align: center; margin-top: 1.75rem; padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100); color: var(--gray-500); font-size: 0.9rem;
}

/* ============ FORMS ============ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem; font-weight: 600;
    font-size: 0.875rem; color: var(--gray-700); letter-spacing: 0.01em;
}
.required { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--gray-800);
    transition: all 0.2s ease; background: white; font-family: inherit;
}
.form-group input:hover, .form-group select:hover, .form-group textarea:hover {
    border-color: var(--gray-400);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-group input::placeholder { color: var(--gray-400); }
.form-group small { display: block; margin-top: 0.375rem; color: var(--gray-400); font-size: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ============ VIEW MANAGEMENT ============ */
.view { display: none; }

/* ============ DASHBOARD ============ */
.dashboard-container { max-width: 1000px; margin: 0 auto; padding: 5rem 2rem 2rem; }

/* Journey Tracker */
.journey-section { margin-bottom: 2rem; }
.journey-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.journey-tracker {
    display: flex; align-items: flex-start; gap: 0; background: white;
    padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow);
    border: 1px solid var(--gray-200); overflow-x: auto;
}
.journey-step {
    flex: 1; text-align: center; position: relative; min-width: 120px;
}
.journey-step::after {
    content: ''; position: absolute; top: 20px; left: 50%; right: -50%;
    height: 3px; background: var(--gray-200); z-index: 0;
}
.journey-step:last-child::after { display: none; }
.journey-step.completed::after { background: var(--success); }
.journey-step.current::after { background: linear-gradient(to right, var(--primary), var(--gray-200)); }

.journey-circle {
    width: 42px; height: 42px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 0.5rem;
    position: relative; z-index: 1; font-size: 1rem;
    border: 3px solid var(--gray-300); background: white; color: var(--gray-400);
    transition: all 0.3s;
}
.journey-step.completed .journey-circle {
    background: var(--success); border-color: var(--success); color: white;
}
.journey-step.current .journey-circle {
    background: var(--primary); border-color: var(--primary); color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    animation: pulse-ring 2s ease infinite;
}
@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1); }
}
.journey-label { font-size: 0.75rem; color: var(--gray-400); font-weight: 600; }
.journey-step.completed .journey-label { color: var(--success-dark); }
.journey-step.current .journey-label { color: var(--primary); font-weight: 700; }

/* Dashboard Cards */
.dash-card {
    background: white; border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow); border: 1px solid var(--gray-200); margin-bottom: 1.5rem;
}
.dash-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.dash-card p { color: var(--gray-500); line-height: 1.7; }
.dash-card .btn { margin-top: 1rem; }

/* RAG Display */
.rag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.rag-item {
    padding: 1rem; border-radius: var(--radius); text-align: center;
    border: 1px solid var(--gray-200);
}
.rag-item .rag-dot {
    width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-bottom: 0.5rem;
}
.rag-item .rag-label { font-size: 0.75rem; color: var(--gray-500); font-weight: 600; line-height: 1.3; }
.rag-green { background: var(--success); }
.rag-amber { background: var(--warning); }
.rag-red { background: var(--danger); }
.rag-unknown { background: var(--gray-300); }

.rag-badge {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.375rem 1rem;
    border-radius: 20px; font-weight: 700; font-size: 0.85rem;
}
.rag-badge-green { background: var(--success-light); color: var(--success-dark); }
.rag-badge-amber { background: var(--warning-light); color: var(--warning-dark); }
.rag-badge-red { background: var(--danger-light); color: var(--danger-dark); }

/* Overall RAG Banner */
.rag-banner {
    padding: 1.5rem 2rem; border-radius: var(--radius); display: flex;
    align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.rag-banner-green { background: var(--success-light); border: 1px solid #6ee7b7; }
.rag-banner-amber { background: var(--warning-light); border: 1px solid #fcd34d; }
.rag-banner-red { background: var(--danger-light); border: 1px solid #fca5a5; }
.rag-banner i { font-size: 1.5rem; }
.rag-banner-green i { color: var(--success); }
.rag-banner-amber i { color: var(--warning); }
.rag-banner-red i { color: var(--danger); }
.rag-banner-text h4 { margin-bottom: 0.25rem; }
.rag-banner-text p { font-size: 0.9rem; opacity: 0.8; margin: 0; }

/* ============ ASSESSMENT ============ */
.assessment-container { max-width: 800px; margin: 0 auto; padding: 5rem 2rem 2rem; }
.assessment-header { text-align: center; margin-bottom: 2rem; }
.assessment-header h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.assessment-header p { color: var(--gray-500); }
.assessment-progress-bar {
    width: 100%; height: 8px; background: var(--gray-200);
    border-radius: 4px; margin: 1.5rem 0 0.5rem; overflow: hidden;
}
.assessment-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 4px; transition: width 0.4s ease;
}
.assessment-progress-text { font-size: 0.85rem; color: var(--gray-400); }

.domain-section {
    background: white; border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow); border: 1px solid var(--gray-200); margin-bottom: 1.5rem;
}
.domain-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--gray-200);
}
.domain-number {
    width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.domain-title { font-size: 1rem; font-weight: 700; }

.question-item { padding: 1rem 0; border-bottom: 1px solid var(--gray-100); }
.question-item:last-child { border-bottom: none; }
.question-text {
    font-size: 0.9rem; color: var(--gray-700); margin-bottom: 0.75rem;
    display: flex; gap: 0.5rem;
}
.question-text .q-num { color: var(--gray-400); font-weight: 600; flex-shrink: 0; }
.critical-badge {
    display: inline-block; padding: 0.125rem 0.5rem; border-radius: 4px;
    font-size: 0.7rem; font-weight: 600; background: var(--danger-light);
    color: var(--danger); margin-left: 0.5rem; vertical-align: middle;
}
.answer-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.answer-option {
    padding: 0.5rem 1.25rem; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
    background: white; user-select: none;
}
.answer-option:hover { border-color: var(--primary); }
.answer-option.selected-yes { background: var(--success-light); border-color: var(--success); color: var(--success-dark); }
.answer-option.selected-partial { background: var(--warning-light); border-color: var(--warning); color: var(--warning-dark); }
.answer-option.selected-no { background: var(--danger-light); border-color: var(--danger); color: var(--danger-dark); }

.assessment-actions { text-align: center; padding: 2rem 0; }

/* ============ EXPOSURE REVIEW ============ */
.review-container { max-width: 800px; margin: 0 auto; padding: 5rem 2rem 2rem; }
.review-header { text-align: center; margin-bottom: 2rem; }
.review-header h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.review-header p { color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.review-section {
    background: white; border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow); border: 1px solid var(--gray-200); margin-bottom: 1.5rem;
}
.review-section h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.section-desc { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1.25rem; }

.defensibility-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.defensibility-item {
    display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem;
    border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
    cursor: pointer; transition: all 0.2s;
}
.defensibility-item:hover { border-color: var(--primary); background: var(--gray-50); }
.defensibility-item input[type="checkbox"] {
    width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0;
    accent-color: var(--success);
}
.defensibility-text strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.defensibility-text { font-size: 0.85rem; color: var(--gray-500); line-height: 1.5; }

.review-submit { text-align: center; padding: 1rem 0; }
.review-note { color: var(--gray-400); font-size: 0.85rem; margin-top: 0.75rem; }

/* ============ PROPOSAL ============ */
.proposal-container { max-width: 700px; margin: 0 auto; padding: 5rem 2rem 2rem; }
.proposal-card {
    background: white; border-radius: var(--radius-lg); padding: 2.5rem;
    box-shadow: var(--shadow-xl); border: 2px solid var(--primary);
}
.proposal-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); }
.proposal-header h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.proposal-header p { color: var(--gray-500); }
.proposal-section { margin-bottom: 1.5rem; }
.proposal-section h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); margin-bottom: 0.75rem; }
.proposal-programmes { display: flex; flex-direction: column; gap: 0.5rem; }
.proposal-prog {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem;
    background: var(--gray-50); border-radius: var(--radius-sm); font-size: 0.9rem;
}
.proposal-prog i { color: var(--primary); }
.proposal-total {
    text-align: center; padding: 1.5rem; background: var(--gray-50);
    border-radius: var(--radius); margin: 1.5rem 0;
}
.proposal-fee { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); }
.proposal-fee-label { font-size: 0.85rem; color: var(--gray-500); }
.proposal-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.proposal-accepted { text-align: center; padding: 2rem; }
.proposal-accepted i { font-size: 3rem; color: var(--success); margin-bottom: 1rem; }

/* ============ PROGRAMMES ============ */
.programmes-container { max-width: 900px; margin: 0 auto; padding: 5rem 2rem 2rem; }
.programme-card {
    background: white; border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow); border: 1px solid var(--gray-200); margin-bottom: 1.5rem;
}
.programme-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.programme-card .programme-meta {
    font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1rem;
    display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.programme-card .programme-meta span { display: flex; align-items: center; gap: 0.3rem; }
.criteria-list { display: flex; flex-direction: column; gap: 0.5rem; }
.criteria-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    background: var(--gray-50); border-radius: var(--radius-sm); font-size: 0.9rem;
}
.criteria-icon {
    width: 28px; height: 28px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.75rem;
}
.criteria-icon.pending { background: var(--gray-200); color: var(--gray-500); }
.criteria-icon.done { background: var(--success-light); color: var(--success); }
.criteria-text { font-size: 0.87rem; }
.criteria-text strong { display: block; }
.criteria-text span { color: var(--gray-500); font-size: 0.8rem; }

/* ============ SPINNER / LOADING ============ */
.spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    position: fixed; inset: 0; background: rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.loading-content { text-align: center; }
.loading-content .spinner-lg {
    width: 40px; height: 40px; border-width: 3px;
    border-color: var(--gray-300); border-top-color: var(--primary);
}

/* ============ PROGRAMME DETAIL VIEW ============ */
.prog-detail-header {
    display: flex; gap: 1.5rem; align-items: flex-start;
    margin-bottom: 2rem; flex-wrap: wrap;
}
.prog-detail-header .prog-info { flex: 1; min-width: 300px; }
.prog-detail-header h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.prog-detail-header .prog-meta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    color: var(--gray-500); font-size: 0.85rem; margin-top: 0.5rem;
}
.prog-detail-header .prog-meta span { display: flex; align-items: center; gap: 0.3rem; }
.prog-detail-header .prog-summary {
    background: white; border-radius: var(--radius); padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm); text-align: center; min-width: 160px;
}
.prog-summary .prog-pct {
    font-size: 2rem; font-weight: 700; color: var(--primary);
}
.prog-summary .prog-pct.complete { color: var(--success); }
.prog-summary .prog-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }

/* Progress bar for programme detail */
.prog-progress-bar {
    background: var(--gray-200); height: 10px; border-radius: 5px;
    margin-bottom: 2rem; overflow: hidden;
}
.prog-progress-bar .fill {
    height: 100%; border-radius: 5px; background: var(--success);
    transition: width 0.4s ease;
}

/* Criteria cards */
.criteria-card {
    background: white; border-radius: var(--radius); padding: 1.25rem;
    box-shadow: var(--shadow-sm); margin-bottom: 0.75rem;
    border-left: 4px solid var(--gray-300); transition: border-color 0.2s, box-shadow 0.2s;
}
.criteria-card:hover { box-shadow: var(--shadow-md); }
.criteria-card.completed { border-left-color: var(--success); background: #f0fdf4; }
.criteria-card.pending { border-left-color: var(--warning); }
.criteria-card .criteria-header {
    display: flex; align-items: flex-start; gap: 0.75rem;
}
.criteria-card .criteria-status-icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0; margin-top: 2px;
}
.criteria-card .criteria-status-icon.done {
    background: var(--success-light); color: var(--success-dark);
}
.criteria-card .criteria-status-icon.pending-icon {
    background: var(--warning-light); color: var(--warning-dark);
}
.criteria-card .criteria-body { flex: 1; }
.criteria-card .criteria-body h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.criteria-card .criteria-body p { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 0.5rem; }
.criteria-card .criteria-body .criteria-tags {
    display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.criteria-tag {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500;
}
.criteria-tag.mandatory { background: var(--danger-light); color: var(--danger-dark); }
.criteria-tag.evidence-needed { background: var(--primary-light); color: var(--primary-dark); }
.criteria-tag.completed-tag { background: var(--success-light); color: var(--success-dark); }

/* Criteria action buttons */
.criteria-actions {
    display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap;
}
.criteria-actions .btn { font-size: 0.8rem; padding: 0.4rem 0.85rem; }

/* Evidence list inside criteria card */
.evidence-list { margin-top: 0.75rem; }
.evidence-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.75rem; background: var(--gray-50); border-radius: var(--radius-sm);
    margin-bottom: 0.4rem; font-size: 0.85rem;
}
.evidence-item .ev-icon {
    color: var(--primary); font-size: 1rem; flex-shrink: 0;
}
.evidence-item .ev-info { flex: 1; }
.evidence-item .ev-info .ev-title { font-weight: 500; }
.evidence-item .ev-info .ev-meta { font-size: 0.75rem; color: var(--gray-400); }
.evidence-item .ev-actions { display: flex; gap: 0.25rem; }
.btn-icon {
    background: none; border: none; padding: 0.3rem; cursor: pointer;
    color: var(--gray-400); border-radius: var(--radius-sm); transition: all 0.15s;
}
.btn-icon:hover { color: var(--primary); background: var(--primary-light); }
.btn-icon.danger:hover { color: var(--danger); background: var(--danger-light); }

/* Assurance banner */
.assurance-banner {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0); border-radius: var(--radius);
    padding: 1.25rem; margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem;
}
.assurance-banner.pending { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.assurance-banner i { font-size: 1.5rem; }
.assurance-banner .assurance-text h4 { margin-bottom: 0.25rem; }
.assurance-banner .assurance-text p { font-size: 0.85rem; color: var(--gray-600); }

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; padding: 1rem;
}
.modal-box {
    background: white; border-radius: var(--radius-lg); width: 100%; max-width: 520px;
    box-shadow: var(--shadow-xl); overflow: hidden; animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.modal-close {
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
    color: var(--gray-400); line-height: 1; padding: 0.25rem;
}
.modal-close:hover { color: var(--gray-700); }
.modal-box form { padding: 1.5rem; }
.modal-actions {
    display: flex; gap: 0.75rem; justify-content: flex-end;
    padding-top: 1rem; border-top: 1px solid var(--gray-100); margin-top: 0.5rem;
}

/* Signature Pad */
.signature-pad-wrapper {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: #fff;
    position: relative;
    margin-bottom: 0.5rem;
}
.signature-pad-wrapper canvas {
    display: block;
    width: 100%;
    height: 180px;
    cursor: crosshair;
    border-radius: var(--radius);
}
.signature-pad-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--gray-400);
    pointer-events: none;
}
.signature-pad-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.signature-pad-actions button {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--gray-600);
}
.signature-pad-actions button:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}
.signature-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.signature-form-row .form-group {
    margin-bottom: 0;
}
.signature-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--blue-50, #eff6ff);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-700);
}
.signature-confirmation input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* File upload area */
.file-upload-area {
    position: relative; border: 2px dashed var(--gray-300); border-radius: var(--radius);
    padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s;
}
.file-upload-area:hover, .file-upload-area.dragover {
    border-color: var(--primary); background: var(--primary-light);
}
.file-upload-area input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.file-upload-placeholder i { font-size: 2rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.file-upload-placeholder p { color: var(--gray-600); }
.file-upload-placeholder .link-text { color: var(--primary); font-weight: 500; }
.file-hint { font-size: 0.75rem; color: var(--gray-400); }
.file-selected {
    display: flex; align-items: center; gap: 0.75rem; text-align: left;
}
.file-selected i { font-size: 1.5rem; color: var(--primary); }
.file-selected .file-info { flex: 1; }
.file-selected .file-info span:first-child { font-weight: 500; display: block; }

/* ============ COOKIE CONSENT ============ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: var(--gray-900);
    color: rgba(255,255,255,0.85);
    padding: 1rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-consent.visible {
    transform: translateY(0);
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cookie-content p {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    line-height: 1.6;
}
.cookie-content p i {
    font-size: 1.25rem;
    color: #fbbf24;
}
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.cookie-link {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-decoration: underline;
}
.cookie-link:hover {
    color: white;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
    .detail-split { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) and (min-width: 769px) {
    .nav-links:not(#nav-links-auth) { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open:not(#nav-links-auth) {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--gray-900);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero { padding: 8rem 1.5rem 3.5rem; }
    #view-landing .hero { padding: 6.5rem 1.25rem 2.25rem; }
    #view-landing .hero-content { gap: 1.4rem; }
    #view-landing .external-hero-visual { display: none; }
    #view-landing .hero-actions { margin-bottom: 0.75rem; }
    #view-landing .hero-pills { margin-top: 0.25rem; }
    .hero-sub { font-size: 1rem; }
    .hero-pills { gap: 0.5rem; }
    .hero-pill { font-size: 0.78rem; padding: 0.5rem 1rem; }
    .hero-trust-bar { gap: 0.75rem; font-size: 0.7rem; }
    .hero-score-preview { gap: 0.75rem; max-width: 320px; }
    .score-ring { width: 80px; height: 80px; }
    .score-value { font-size: 1.1rem; }
    .score-arrow { font-size: 1rem; }
    .results-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .section { padding: 4.5rem 0; }
    .section-header h2 { font-size: 1.75rem; }
    .section-header { margin-bottom: 2.5rem; }
    .nav-links:not(#nav-links-auth) { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open:not(#nav-links-auth) {
        display: flex; flex-direction: column; position: absolute;
        top: 72px; left: 0; right: 0; background: var(--gray-900);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 30px rgba(0,0,0,0.3); gap: 0.75rem;
    }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .pricing-flow { flex-direction: column; gap: 0.75rem; }
    .pricing-flow-arrow { transform: rotate(90deg); }
    .pricing-flow-step { min-width: unset; width: 100%; max-width: 280px; }
    .pricing-grid, .pricing-grid-4 { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .pricing-outcome-note { flex-direction: column; align-items: center; text-align: center; }
    .journey-tracker { flex-direction: column; gap: 0.5rem; }
    .journey-step::after { display: none; }
    .proposal-actions { flex-direction: column; }
    .cta-section { padding: 4rem 1.5rem; }
    .cta-section h2 { font-size: 1.75rem; }
    .footer-links { gap: 1rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-col-brand { grid-column: 1 / -1; max-width: 100%; }
    .cookie-content { flex-direction: column; gap: 1rem; text-align: center; }
    .cookie-content p { justify-content: center; }
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children within revealed sections */
.reveal.visible .pricing-card,
.reveal.visible .testimonial-card,
.reveal.visible .faq-item,
.reveal.visible .product-card {
    animation: stagger-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.reveal.visible .pricing-card:nth-child(1),
.reveal.visible .testimonial-card:nth-child(1),
.reveal.visible .faq-item:nth-child(1),
.reveal.visible .product-card:nth-child(1) { animation-delay: 0.1s; }

.reveal.visible .pricing-card:nth-child(2),
.reveal.visible .testimonial-card:nth-child(2),
.reveal.visible .faq-item:nth-child(2),
.reveal.visible .product-card:nth-child(2) { animation-delay: 0.2s; }

.reveal.visible .pricing-card:nth-child(3),
.reveal.visible .testimonial-card:nth-child(3),
.reveal.visible .faq-item:nth-child(3),
.reveal.visible .product-card:nth-child(3) { animation-delay: 0.3s; }

.reveal.visible .pricing-card:nth-child(4),
.reveal.visible .faq-item:nth-child(4) { animation-delay: 0.4s; }

.reveal.visible .faq-item:nth-child(5) { animation-delay: 0.5s; }
.reveal.visible .faq-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes stagger-in {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .reveal.visible .pricing-card,
    .reveal.visible .testimonial-card,
    .reveal.visible .faq-item,
    .reveal.visible .product-card { animation: none; }
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.product-card-badge {
    position: absolute;
    top: -12px;
    left: 2rem;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.compliance-badge { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.dse-badge { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.msk-badge { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

.product-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.compliance-icon { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; }
.dse-icon { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.msk-icon { background: linear-gradient(135deg, #10b981, #059669); color: white; }

.product-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.35rem;
}
.product-card-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 1rem;
    font-style: italic;
}
.product-card-desc {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}
.product-features li {
    font-size: 0.88rem;
    color: var(--gray-700);
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
}
.product-features li i {
    color: var(--success);
    font-size: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.product-regulations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.reg-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    background: var(--gray-50);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.reg-tag i { font-size: 0.65rem; }

.product-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}
.product-card-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
}

/* Platform Integration Banner */
.platform-integration-banner {
    margin-top: 3rem;
    background: linear-gradient(135deg, #0a1628 0%, #0f2440 50%, #1e3a5f 100%);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}
.platform-integration-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a5b4fc;
}
.platform-integration-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.platform-integration-content p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* ============================================================
   DSE DETAIL SECTION
   ============================================================ */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}
.product-detail-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.detail-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.detail-step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}
.detail-step-content p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.product-detail-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.highlight-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.highlight-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.highlight-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.2rem;
}
.highlight-card p {
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.5;
}

/* ============================================================
   MYMSK PLAN DETAIL SECTION
   ============================================================ */
.msk-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

.msk-journey h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.msk-journey h3 i { color: #059669; }

.msk-journey-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    padding-bottom: 1.75rem;
}
.msk-journey-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: 0;
    width: 2px;
    background: #a7f3d0;
}
.msk-step-marker {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.msk-step-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.2rem;
}
.msk-step-body p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.msk-data-boundary h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.msk-data-boundary h3 i { color: #059669; }

.data-boundary-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.data-item {
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.data-item.data-device {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.data-item.data-corporate {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}
.data-item.data-voluntary {
    background: #fef3c7;
    border: 1px solid #fde68a;
}
.data-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.data-item.data-corporate .data-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.data-item.data-voluntary .data-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.data-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.2rem;
}
.data-item p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ============ PRODUCTS RESPONSIVE ============ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .product-detail-grid,
    .msk-detail-layout {
        grid-template-columns: 1fr;
    }
    .platform-integration-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .product-card {
        padding: 2rem 1.5rem 1.5rem;
    }
    .product-card-actions {
        flex-direction: column;
    }
    .product-card-actions .btn {
        width: 100%;
    }
}

/* ── Tab Components (How It Works + Pricing) ────────────── */
.hiw-tabs,
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.hiw-tab,
.pricing-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--gray-600);
}
.hiw-tab:hover,
.pricing-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.hiw-tab.active,
.pricing-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.hiw-panel,
.pricing-panel {
    display: none;
}
.hiw-panel.active,
.pricing-panel.active {
    display: block;
    animation: fadeInPanel 0.35s ease;
}
@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Pricing grid for 3 columns */
.pricing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* Testimonial product tags */
.testimonial-product-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    background: var(--primary-light, #eef2ff);
    color: var(--primary);
}

/* CTA section buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 0.75rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Responsive adjustments for tabs */
@media (max-width: 640px) {
    .hiw-tab, .pricing-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============ ASSESSMENT JOURNEY UX ============ */

/* Risk indicator during assessment */
.assessment-risk-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 500;
}
.assessment-risk-indicator i {
    color: #f59e0b;
}

/* Mid-assessment encouragement nudge */
.assessment-midpoint-nudge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 0.75rem;
}
.midpoint-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.midpoint-content {
    flex: 1;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.5;
}

/* Submit context line */
.assessment-submit-context {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
}
.assessment-submit-context i {
    color: #059669;
    margin-right: 0.4rem;
}

/* Risk flags on RAG items */
.rag-risk-flag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.rag-risk-flag.rag-risk-amber {
    color: #d97706;
}
.rag-risk-flag.rag-risk-green {
    color: #059669;
}

/* Dashboard upsell cards */
.dash-upsell-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dash-upsell-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #c7d2fe;
}
.dash-upsell-card i {
    font-size: 1.5rem;
    color: #2563eb;
}
.dash-upsell-card strong {
    font-size: 0.9rem;
    color: #111827;
}
.dash-upsell-card span {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Current journey step highlight */
.djp-current {
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .assessment-midpoint-nudge {
        flex-direction: column;
        text-align: center;
    }
    .dash-upsell-card {
        min-width: 0;
    }
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============ LEGAL URGENCY & OBLIGATION STYLES ============ */

/* Obligation banner below hero */
.obligation-banner {
    background: #0f172a;
    border-bottom: 2px solid #dc2626;
    padding: 1.25rem 2rem;
    text-align: center;
}
.obligation-banner-inner {
    max-width: 1000px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 2rem;
    flex-wrap: wrap;
}
.obligation-banner-item {
    display: flex; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500;
}
.obligation-banner-item i {
    color: #f87171; font-size: 0.9rem;
}
.obligation-banner-item strong { color: #fbbf24; }

/* "The Law Is Clear" section */
.law-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    margin-top: 2.5rem;
}
.law-card {
    background: white; border-radius: var(--radius);
    padding: 2rem; border: 1px solid var(--gray-200);
    position: relative; overflow: hidden;
    transition: all 0.3s ease;
}
.law-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.law-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
}
.law-card-compliance::before { background: var(--accent); }
.law-card-dse::before { background: #f59e0b; }
.law-card-msk::before { background: #10b981; }
.law-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 1.25rem;
}
.law-card-compliance .law-card-icon { background: #eff6ff; color: #2563eb; }
.law-card-dse .law-card-icon { background: #fef3c7; color: #d97706; }
.law-card-msk .law-card-icon { background: #d1fae5; color: #059669; }
.law-card h4 {
    font-size: 1.1rem; font-weight: 800; color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.law-card .law-regulation {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.25rem 0.65rem; border-radius: 20px;
    background: var(--gray-50); border: 1px solid var(--gray-200);
    font-size: 0.72rem; font-weight: 600; color: var(--gray-600);
    margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.law-card p {
    font-size: 0.9rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 0.75rem;
}
.law-consequence {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.75rem; border-radius: var(--radius-sm);
    background: #fef2f2; border: 1px solid #fecaca;
    font-size: 0.8rem; color: #991b1b; line-height: 1.5;
}
.law-consequence i { color: #dc2626; margin-top: 0.15rem; flex-shrink: 0; }

/* Consequence stats bar */
.consequence-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
    margin-bottom: 3rem;
}
.consequence-stat {
    text-align: center; padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.06);
}
.consequence-stat-number {
    font-size: 2rem; font-weight: 800; color: #f87171;
    margin-bottom: 0.25rem; letter-spacing: -0.02em;
}
.consequence-stat-number span { font-size: 1.25rem; }
.consequence-stat-label {
    font-size: 0.78rem; color: rgba(255,255,255,0.5);
    line-height: 1.4; font-weight: 500;
}

/* Journey progress visualization */
.journey-visual {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0; margin: 2.5rem 0 0; flex-wrap: wrap;
}
.journey-visual-step {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; flex: 0 0 auto; width: 180px; padding: 0 0.5rem;
}
.jv-score { position: relative; width: 80px; height: 80px; margin-bottom: 0.75rem; }
.jv-score svg { width: 100%; height: 100%; }
.jv-pct {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 1.1rem; font-weight: 800; color: var(--gray-900);
}
.jv-score-red .jv-pct { color: #ef4444; }
.jv-score-amber .jv-pct { color: #f59e0b; }
.jv-score-improving .jv-pct { color: #34d399; }
.jv-score-green .jv-pct { color: #10b981; }
.jv-label { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.35rem; }
.jv-tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem;
    border-radius: 9999px; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.jv-tag-red { background: #fef2f2; color: #dc2626; }
.jv-tag-amber { background: #fffbeb; color: #d97706; }
.jv-tag-green { background: #ecfdf5; color: #059669; }
.jv-desc { font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; }
.jv-connector {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.25rem; padding-top: 1.75rem; color: var(--gray-300); flex: 0 0 auto;
}
.jv-connector i { font-size: 1rem; }
.jv-time { font-size: 0.65rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.jv-destination .jv-score { filter: drop-shadow(0 0 12px rgba(16,185,129,0.3)); }
@media (max-width: 768px) {
    .journey-visual { flex-direction: column; align-items: center; gap: 0.5rem; }
    .journey-visual-step { width: 100%; max-width: 280px; }
    .jv-connector { flex-direction: row; padding: 0.5rem 0; }
    .jv-connector i { transform: rotate(90deg); }
}

/* Product card obligation tag */
.product-obligation-tag {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 0.85rem; border-radius: var(--radius-sm);
    background: #f0f9ff; border-left: 3px solid var(--accent);
    font-size: 0.8rem; color: #1e40af; font-weight: 600;
    margin-bottom: 1rem; line-height: 1.4;
}
.product-obligation-tag i { flex-shrink: 0; }
.product-obligation-tag.obligation-warning {
    background: #fffbeb; border-color: #fed7aa; color: #92400e;
}
.product-obligation-tag.obligation-warning i { color: #d97706; }
.product-obligation-tag.obligation-info {
    background: #f0fdf4; border-color: #bbf7d0; color: #166534;
}
.product-obligation-tag.obligation-info i { color: #16a34a; }

/* Section urgency header */
.urgency-header-sub {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.85rem; border-radius: 20px;
    background: #fef2f2; color: #dc2626;
    font-size: 0.78rem; font-weight: 600;
    margin-top: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .law-grid { grid-template-columns: 1fr; }
    .consequence-stats { grid-template-columns: repeat(2, 1fr); }
    .obligation-banner-inner { flex-direction: column; gap: 0.5rem; }
}

/* ============ PRODUCT STANDALONE PAGES ============ */

/* Hero */
.product-page-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: #fff;
    position: relative;
}
.product-page-hero-compliance {
    background: linear-gradient(135deg, #0a1628 0%, #0f2440 40%, #1e3a5f 100%);
}
.product-page-hero-dse {
    background: linear-gradient(135deg, #451a03 0%, #78350f 40%, #b45309 100%);
}
.product-page-hero-adjustments {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 40%, #7c3aed 100%);
}
.product-page-hero-msk {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 40%, #059669 100%);
}
.product-page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.product-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 1.5rem;
}
.product-page-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.product-page-hero-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto 2rem;
}
.product-page-hero-actions {
    margin-bottom: 1.5rem;
}
.product-page-hero-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.product-page-hero-proof span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* White button for dark hero backgrounds */
.btn-white {
    background: #fff;
    color: #0f172a;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Active nav link */
.nav-active {
    color: #60a5fa !important;
    font-weight: 600;
}

/* Plain-English grid */
.plain-english-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.plain-english-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}
.plain-english-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.plain-english-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.plain-english-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111827;
}
.plain-english-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4b5563;
}

/* Domains grid */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.domain-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}
.domain-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.domain-card-icon {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 0.75rem;
}
.domain-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}
.domain-card p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #6b7280;
}

/* Product-page steps */
.product-page-steps {
    max-width: 700px;
    margin: 2rem auto 0;
}
.pp-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
}
.pp-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pp-step-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #111827;
}
.pp-step-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
}
.pp-step-time {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    margin-left: 0.5rem;
}

/* Before / After grid */
.before-after-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
    margin-top: 2rem;
}
.before-after-card {
    flex: 1;
    max-width: 380px;
    border-radius: 1rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.before-card {
    background: #fef2f2;
}
.after-card {
    background: #f0fdf4;
}
.ba-header {
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ba-header-red {
    background: #dc2626;
    color: #fff;
}
.ba-header-green {
    background: #059669;
    color: #fff;
}
.ba-list {
    list-style: none;
    padding: 1.25rem;
    margin: 0;
}
.ba-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151;
}
.ba-list li i.fa-times {
    color: #dc2626;
    margin-top: 0.2rem;
}
.ba-list li i.fa-check {
    color: #059669;
    margin-top: 0.2rem;
}
.before-after-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    font-size: 2rem;
    color: #9ca3af;
}

/* 3-column pricing grid */
.pricing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
/* 4-column pricing grid */
.pricing-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Pricing card extra colours */
.green-card {
    border-color: #059669;
}
.green-badge {
    background: #d1fae5;
    color: #059669;
}
.amber-badge {
    background: #fef3c7;
    color: #d97706;
}
.red-badge {
    background: #fee2e2;
    color: #dc2626;
}
.redplus-badge {
    background: #fecaca;
    color: #991b1b;
}
.green-tier { color: #059669; }
.amber-tier { color: #d97706; }
.red-tier { color: #dc2626; }
.redplus-tier { color: #991b1b; }

.pricing-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.pricing-tier {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.pricing-severity {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.25rem;
}
.pricing-per {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.pricing-outcome-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #374151;
}
.pricing-outcome-icon {
    color: #2563eb;
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

/* Section badge variants */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.badge-compliance {
    background: #eff6ff;
    color: #1d4ed8;
}

/* ============ PRODUCT PAGE RESPONSIVE ============ */
@media (max-width: 768px) {
    .product-page-hero {
        padding: 6rem 1.25rem 3rem;
    }
    .product-page-hero h1 {
        font-size: 1.75rem;
    }
    .product-page-hero-sub {
        font-size: 1rem;
    }
    .product-page-hero-proof {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .plain-english-grid {
        grid-template-columns: 1fr;
    }
    .domains-grid {
        grid-template-columns: 1fr 1fr;
    }
    .before-after-grid {
        flex-direction: column;
        align-items: center;
    }
    .before-after-card {
        max-width: 100%;
    }
    .before-after-arrow {
        transform: rotate(90deg);
        padding: 1rem 0;
    }
    .pricing-grid-3 {
        grid-template-columns: 1fr;
    }
    .pricing-grid-4 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .domains-grid {
        grid-template-columns: 1fr;
    }
}
