:root {
    --muted: #6B6E76;
    --subtle: #9295A0;
    --rule: #E1DDD3;
    --ink: #1A1816;
    --critical: #B83A4B;
    --weak: #D4774A;
    --adequate: #6842D3;
    --strong: #0FA8BD;
}

.sub_header .top_bar_inner { display: flex; align-items: center; justify-content: space-between; }
.sub_header  .top_right_text { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--primary_violet); line-height: 17.05px; letter-spacing: 1.76px; }
header.sub_header { border-bottom: 1px solid #E2E8F0; padding: 20px 0; }
header.sub_header .logo { width: 115.3px; line-height: 0; }
header.sub_header .container { width: 1200px; max-width: 100%; padding: 0 40px; }

#screen-landing { padding: 80px 0; }
.screen_slide { animation: fadeIn 0.4s cubic-bezier(0.2, 0.7, 0.3, 1); display: none; }
.screen_slide.active { display: block; }
.screen_slide .container { width: 800px; max-width: 100%; padding: 0 40px; }
.screen_slide .eyebrow { font-size: 11px; line-height: 17.05px; letter-spacing: 1.98px; text-transform: uppercase; font-weight: 600; position: relative; color: var(--primary_violet); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.screen_slide .eyebrow:before { content: ""; width: 8px; height: 8px; background: var(--primary_violet); border-radius: 50%; }
div#screen-landing h1 { font-weight: 500; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 28px; max-width: 720px; color: var(--primary_navy); }
div#screen-landing h1 em { color: var(--primary_violet); font-weight: 500; }
#screen-landing .con { font-size: 18px; line-height: 1.55; color: #3A4680; :; max-width: 580px; margin-bottom: 40px; }

.btn-primary { display: inline-flex; align-items: center; gap: 14px; background: var(--primary_navy); color: white; padding: 18px 35px; border-radius: 999px; border: none; cursor: pointer; font-family: var(--body_font); font-weight: 500; font-size: 15px; transition: all 0.3s ease; }
.btn-primary:hover { background: var(--primary_violet); transform: translateY(-1px); }
.btn-primary:disabled { background: #9295A0; cursor: not-allowed; transform: none; }
.btn-primary .arrow { transition: transform 0.3s; line-height: 0; }
.btn-primary:hover:not(:disabled) .arrow { transform: translateX(4px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 14px; background: transparent; color: var(--dark-blue); padding: 18px 32px; border-radius: 999px; border: 1px solid #E1DDD3; cursor: pointer; font-family: var(--body_font); font-weight: 500; font-size: 15px; transition: all 0.3s ease; }
.btn-secondary:hover { border-color: var(--dark-blue); }
.btn-secondary:disabled { color: #9295A0; cursor: not-allowed; opacity: 0.5; }
.btn-violet { background: var(--primary_violet); color: white; }
.btn-violet:hover { background: #4F2EB7; }

#screen-landing .stats { display: flex; gap: 48px; margin: 56px 0 64px; flex-wrap: wrap; }
.stat-item .label { font-size: 10px; line-height: 1.55; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: #94A3B8; margin-bottom: 8px; }
.stat-item .value { font-family: var(--heading_font); font-style: italic; font-size: 22px; color: var(--primary_navy); }

#screen-landing .what-you-get { border-top: 1px solid #E2E8F0; padding-top: 40px; margin-top: 56px; }
#screen-landing .what-you-get h3 { font-size: 22px; color: var(--primary_navy); margin-bottom: 24px; }
#screen-landing .what-you-get ul { list-style: none; max-width: 560px; padding: 0; margin: 0; }
#screen-landing .what-you-get li { padding: 14px 0 14px 24px; position: relative; color: #3A4680; font-size: 15px; border-bottom: 1px solid #E2E8F0; }
#screen-landing .what-you-get li::before { content: "—"; position: absolute; left: 0; color: var(--primary_violet); font-weight: 600; }

/* Screen 2 */
#screen-question { padding: 56px 0 100px; }
.progress-bar-wrap { margin-bottom: 56px; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 12px; color: #6B6E76; }
.progress-meta .component-tag { font-family: var(--heading_font); font-style: italic; color: var(--primary_violet); font-size: 14px; }
.progress-track { height: 3px; background: #E2E8F0; border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary_violet); transition: width 0.4s cubic-bezier(0.2, 0.7, 0.3, 1); border-radius: 2px; }
.question-number { font-family: var(--heading_font); font-style: italic; color: var(--primary_violet); font-size: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.question-number::before { content: ""; width: 32px; height: 1px; background: var(--primary_violet); }

.question-text { font-family: var(--heading_font); font-weight: 500; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.2; letter-spacing: -0.6px; color: var(--primary_navy); margin-bottom: 48px; }
.answer_wrap.options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 64px; }
.answer_wrap .option { display: flex; align-items: center; gap: 18px; padding: 22px 28px; background: #FBFCFD; border: 1px solid #E2E8F0; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; font-size: 16px; color: #3A4680; }
.answer_wrap .option-radio { width: 20px; height: 20px; border: 2px solid #94A3B8; border-radius: 50%; flex-shrink: 0; position: relative; transition: all 0.2s; }
.answer_wrap .option-text { flex: 1; line-height: 1.45; }
.answer_wrap .option:hover { border-color: var(--primary_violet); transform: translateX(2px); background: #fff; }
.answer_wrap .option:hover .option-radio { border-color: var(--primary_violet); }
.answer_wrap .option.selected { border-color: var(--primary_violet); background: #F8F5FE; color: var(--primary_navy); }
.answer_wrap .option.selected .option-radio::after { content: ""; position: absolute; inset: 3px; background: var(--primary_violet); border-radius: 50%; }
.answer_wrap .option.selected .option-radio { border-color: var(--primary_violet); }

.nav-buttons { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* ====== Email gate screen ====== */
#screen-email { padding: 80px 0; }
#screen-email h2 { font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; color: var(--primary_navy); margin-bottom: 20px; }
#screen-email .con { font-size: 17px; color: #3A4680; margin-bottom: 48px; max-width: 580px; }
.preview-card { background: white; border: 1px solid #E1DDD3; border-radius: 12px; padding: 36px 36px 40px; margin-bottom: 40px; position: relative; overflow: hidden; }
.preview-card .preview-label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary_violet); margin-bottom: 24px; }
.preview-card .blurred { filter: blur(6px); opacity: 0.6; pointer-events: none; user-select: none; }
.preview-card .preview-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.95) 65%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 32px; }
.preview-card .preview-lock { width: 56px; height: 56px; background: #F3EFFC; border: 1px solid var(--primary_violet); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary_violet); font-size: 24px; }
.email-form { max-width: 480px; }
.email-input { width: 100%; padding: 18px 22px; background: white; border: 1px solid #E1DDD3; border-radius: 999px; font-family: var(--body_font); font-size: 15px; color: rgb(4 12 86 / 50%); margin-bottom: 16px; transition: border-color 0.2s; }
.email-input:focus { outline: none; border-color: var(--primary_violet); }
.email-privacy { font-size: 12px; color: #9295A0; margin-top: 16px; line-height: 1.5; margin-top: 16px; }

/* ====== Results screen ====== */
#screen-results { padding: 56px 0 100px; }
#screen-results .container { width: 1080px; }
.results-header { margin-bottom: 64px; }
.results-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary_violet); margin-bottom: 20px; }
.results-header h2 { font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; color: var(--primary_navy); margin-bottom: 12px; }
.results-header .for-line { font-family: var(--heading_font); font-style: italic; font-size: 16px; color: #6B6E76; }
.overall-score-section { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; margin-bottom: 64px; padding: 48px; background: white; border: 1px solid #E1DDD3; border-radius: 16px; }
.score-circle { width: 180px; height: 180px; border-radius: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.score-circle .score-num { font-family: var(--heading_font); font-style: italic; font-weight: 500; font-size: 64px; line-height: 1; color: var(--dark-blue); }
.score-circle .score-total { font-size: 13px; color: #6B6E76; margin-top: 4px; }
.score-narrative .band-label { font-family: var(--body_font); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.band-label.critical { color: var(--critical); }
.band-label.weak { color: var(--weak); }
.band-label.adequate { color: var(--adequate); }
.band-label.strong { color: var(--strong); }
.score-narrative h3 { font-size: 26px; color: var(--primary_navy); line-height: 1.2; margin-bottom: 14px; font-weight: 500; }
.score-narrative { font-size: 15px; color: #2A4165; line-height: 1.6; }

/* Scorecard */
.scorecard { background: white; border: 1px solid var(--rule); border-radius: 16px; padding: 48px; margin-bottom: 56px; }
.scorecard h3 { font-size: 26px; color: var(--primary_navy); margin-bottom: 32px; font-weight: 500; }
.component-bars { display: flex; flex-direction: column; gap: 0; }
.component-bar { display: grid; grid-template-columns: 1fr 3fr auto auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.component-bar:last-child { border-bottom: none; }
.component-name { font-size: 14px; font-weight: 500; color: var(--primary_navy); }
.bar-track { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; transition: width 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }
.bar-fill.critical { background: var(--critical); }
.bar-fill.weak { background: var(--weak); }
.bar-fill.adequate { background: var(--adequate); }
.bar-fill.strong { background: var(--strong); }
.bar-score { font-family: var(--heading_font); font-style: italic; font-size: 18px; color: var(--dark-blue); font-weight: 500; min-width: 32px; text-align: right; }
.bar-band { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; min-width: 76px; text-align: center; }
.bar-band.critical { background: rgba(184, 58, 75, 0.1); color: var(--critical); }
.bar-band.weak { background: rgba(212, 119, 74, 0.1); color: var(--weak); }
.bar-band.adequate { background: #F3EFFC; color: var(--violet); }
.bar-band.strong { background: rgba(15, 168, 189, 0.1); color: #0FA8BD; }

/* Component diagnostics */
.diagnostics { margin-bottom: 56px; }
.diagnostics h3 { font-family: var(--heading_font); font-size: 28px; color: var(--dark-blue); margin-bottom: 32px; font-weight: 500; }
.diag-list { display: flex; flex-direction: column; gap: 16px; }
.diag-item { background: white; border: 1px solid var(--rule); border-radius: 10px; padding: 28px 32px; border-left: 4px solid transparent; }
.diag-item.critical { border-left-color: var(--critical); }
.diag-item.weak { border-left-color: var(--weak); }
.diag-item.adequate { border-left-color: var(--adequate); }
.diag-item.strong { border-left-color: var(--strong); }
.diag-item-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 16px; }
.diag-item h4 { font-size: 20px; font-weight: 500; color: var(--primary_navy); margin: 0; }
.diag-item .score-tag { font-family: var(--heading_font); font-style: italic; font-size: 18px; color: var(--primary_violet); flex-shrink: 0; }
.diag-item p { color: var(--navy-soft); font-size: 15px; line-height: 1.6; }

/* Quick wins */
.quick-wins { background: #EBE9EF; border-radius: 16px; padding: 48px; margin-bottom: 56px; }
.quick-wins h3 { font-size: 26px; color: var(--primary_navy); margin-bottom: 12px; font-weight: 500; }
.quick-wins .qw-lede { font-size: 15px; line-height: 23.25px; color: var(--muted); margin-bottom: 32px; max-width: 600px; }
.qw-list { display: flex; flex-direction: column; gap: 14px; }
.qw-item { background: #FBFCFD; border: 1px solid #E2E8F0; border-radius: 8px; padding: 22px 28px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.qw-num { font-family: var(--heading_font); font-style: italic; color: var(--primary_violet); font-size: 22px; line-height: 1.2; }
.qw-content .qw-action { font-weight: 500; color: var(--dark-blue); margin-bottom: 6px; font-size: 15px; line-height: 23px; }
.qw-content .qw-context { color: #475569; font-size: 13px; line-height: 20px; }

/* CTA section */
.results-cta { background: var(--dark-blue); color: #fff; padding: 56px 48px; border-radius: 16px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.results-cta h3 { font-family: var(--heading_font); font-size: clamp(26px, 3vw, 36px); color: white; line-height: 1.15; margin-bottom: 16px; font-weight: 500; }
.results-cta h3 em { font-style: italic; color: var(--primary_turq); }
.results-cta p { color: rgba(255, 255, 255, 0.78); font-size: 15px; line-height: 1.6; margin-bottom: 0; }
.cta-buttons { display: flex; flex-direction: column; gap: 14px; }
.cta-btn-primary { background: var(--primary_turq); color: var(--dark-blue); padding: 18px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.5; text-align: center; transition: all 0.3s; border: none; cursor: pointer; font-family: var(--body_font); }
.cta-btn-primary:hover { background: white; transform: translateY(-1px); }
.cta-btn-secondary { background: transparent; color: white; padding: 17px 28px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); text-decoration: none; font-weight: 500; font-size: 14px; text-align: center; transition: all 0.3s; cursor: pointer; font-family: var(--body_font); }
.cta-btn-secondary:hover { border-color: white; background: rgba(255, 255, 255, 0.05); }

/* Footer */
footer.sub_footer { text-align: center; padding: 32px 0; font-size: 12px; line-height: 18px; color: #475569; background: var(--secondary_grey_01); }

/* PDF Css */
.pdf-exporting .results-cta,
.pdf-exporting .pdf-actions,
.pdf-exporting .btn-primary,
.pdf-exporting .btn-secondary {
    display: none !important;
}

.pdf-exporting #screen-results {
    background: #fff;
}

.pdf-exporting * {
    animation: none !important;
    transition: none !important;
}
/**/
    
/* ======================================================
PDF TEMPLATE
====================================================== */
.pdf-report { position: absolute; left: -99999px; top: 0; width: 210mm; background: #fff; color: #000; z-index: -1; }
.pdf-page { width: 210mm; height: 297mm; overflow: hidden; box-sizing: border-box; background: #fff; page-break-after: always; padding: 0; }
.pdf-page:last-child { page-break-after: auto; }
.pdf-score-circle { width: 150px; height: 150px; border-radius: 50%; border: 5px solid #6842D3; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: bold; }
.pdf-component { margin-bottom: 20px; }
.pdf-component-title { margin-bottom: 8px; font-weight: 600; }
.pdf-report .container { width: 100%; padding: 10mm 18mm; box-sizing: border-box; }
.pdf-report .component-bar { grid-template-columns: 2fr 3fr auto auto; padding: 12px 0; }
.pdf-report header.sub_header .container { padding: 0 50px; }
.pdf-report .scorecard { padding: 15px; margin-bottom: 0; }
.pdf-report .score-circle { border-radius: 9999px; }  
.pdf-report .results-header { margin-bottom: 20px; padding: 0; }
.pdf-report .overall-score-section { margin-bottom: 30px; padding: 28px; gap: 24px; } 
.pdf-report .score-circle { width: 140px; height: 140px; }
.pdf-report .score-circle .score-num { font-size: 48px; }
.pdf-report .diag-item { padding: 15px; }
.pdf-report .quick-wins { padding: 28px; }
.pdf-report h2 { font-size: 40px; }
.pdf-report h3 { font-size: 24px; margin-bottom: 10px; }
.pdf-report p { font-size:15px; }
.pdf-report .diag-item-header { margin-bottom: 5px; }
.pdf-report .results-eyebrow { line-height: 1.2; }
.pdf-report .scorecard h3 { margin-bottom: 0; }
.pdf-report .schedule_button a { cursor: pointer; }
.pdf-report .schedule_button a:hover { color: #fff; }


/* Responsive */
@media (max-width: 767px) {
    .top-bar-inner { padding: 0 24px; }
    .screen_slide .container, header.sub_header .container { padding: 0 24px; }
    .top_right_text { display: none; }
    #screen-landing, #screen-email { padding: 50px 0; }
    .overall-score-section { grid-template-columns: 1fr; padding: 32px; }
    .results-cta { grid-template-columns: 1fr; padding: 36px 28px; }
    .component-bar { grid-template-columns: 1fr; gap: 8px; }
    .nav-buttons { flex-direction: column-reverse; }
    .nav-buttons button { width: 100%; justify-content: center; }
    .btn-primary { padding: 18px 28px; }
    #screen-landing .con { font-size: 14px; }
    #screen-landing .stats { margin: 40px 0; }
    #screen-landing .what-you-get { margin-top: 40px; }
    .answer_wrap .option { font-size: 14px; padding: 22px 15px; gap: 10px; }
    .diag-item h4 { font-size: 18px; line-height: 1.5; }
    
    .overall-score-section { padding: 50px 24px; gap: 24px; margin-bottom: 48px; }
    .score-circle { height: 150px; width: 150px; margin: 0; }
    .scorecard { padding: 24px; }
    .component-bar { gap: 12px; }
    .diag-item { padding: 24px 15px; }
    .quick-wins { padding: 24px; margin-bottom: 48px; }
    .qw-item { padding: 15px; gap: 12px; }
    .results-cta { padding: 48px 24px; flex-wrap: wrap; display: flex; gap: 28px; }
    .results-cta .cta-buttons { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .results-cta .cta-btn-primary { width: auto; }
    .results-header { margin-bottom: 48px; }
    #screen-results { padding: 50px 0; }
}