/* ===== CMMC Ready — Stylesheet ===== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1B4F72;
    --primary-light: #2471A3;
    --primary-dark: #154360;
    --success: #27AE60;
    --success-light: #2ECC71;
    --warning: #F39C12;
    --warning-light: #F5B041;
    --danger: #E74C3C;
    --danger-light: #EC7063;
    --text: #2C3E50;
    --text-light: #5D6D7E;
    --text-muted: #95A5A6;
    --bg: #F8FAFC;
    --bg-white: #FFFFFF;
    --border: #E5E8EB;
    --border-light: #F0F2F4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--primary-light);
}

.hidden {
    display: none !important;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.logo:hover { color: var(--text); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover {
    color: var(--primary);
}

.nav-login {
    font-weight: 600 !important;
    color: var(--primary) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
.btn-md {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}
.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}
.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: var(--success-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------- Hero ---------- */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.hero-trust {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}
.hero-actions .btn-primary:hover {
    background: #f0f4f8;
    color: var(--primary-dark);
}

.hero-actions .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.hero-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Assessment Section ---------- */
.assessment-section {
    padding: 5rem 0;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.step.active .step-number {
    background: var(--primary);
    color: #fff;
}

.step.completed .step-number {
    background: var(--success);
    color: #fff;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

/* Card */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ---------- Forms ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: inherit;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,79,114,0.1);
}

textarea {
    resize: vertical;
    min-height: 60px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9rem;
    font-weight: 400 !important;
    color: var(--text);
    cursor: pointer;
}

.radio-label input,
.checkbox-label input {
    accent-color: var(--primary);
}

/* Mode Selector */
.mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.mode-option:hover {
    border-color: var(--primary-light);
}

.mode-option.active {
    border-color: var(--primary);
    background: rgba(27,79,114,0.04);
}

.mode-icon {
    font-size: 1.5rem;
}

.mode-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.mode-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Progress ---------- */
.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 100px;
    transition: width 0.4s ease;
}

/* ---------- Domain Tabs ---------- */
.domain-tabs-wrapper {
    overflow-x: auto;
    margin: 0 -2rem 1.5rem;
    padding: 0 2rem;
    scrollbar-width: thin;
}

.domain-tabs {
    display: flex;
    gap: 0.375rem;
    min-width: max-content;
}

.domain-tab {
    padding: 0.5rem 0.875rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--bg-white);
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    position: relative;
}

.domain-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.domain-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.domain-tab.has-responses::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

/* ---------- Control Cards ---------- */
.controls-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--bg);
    transition: border-color var(--transition);
}

.control-card.answered {
    border-color: var(--primary-light);
    background: var(--bg-white);
}

.control-id {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(27,79,114,0.06);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.375rem;
}

.control-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.control-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.control-tip {
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(27,79,114,0.04);
    border-left: 3px solid var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 0.75rem;
}

.control-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.control-option {
    padding: 0.375rem 0.875rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 100px;
    background: var(--bg-white);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-light);
}

.control-option:hover {
    transform: translateY(-1px);
}

.control-option[data-value="yes"] {
    border-color: #d4edda;
    color: #155724;
}
.control-option[data-value="yes"]:hover,
.control-option[data-value="yes"].selected {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.control-option[data-value="partial"] {
    border-color: #fff3cd;
    color: #856404;
}
.control-option[data-value="partial"]:hover,
.control-option[data-value="partial"].selected {
    background: var(--warning);
    border-color: var(--warning);
    color: #fff;
}

.control-option[data-value="no"] {
    border-color: #f8d7da;
    color: #721c24;
}
.control-option[data-value="no"]:hover,
.control-option[data-value="no"].selected {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.control-option[data-value="unsure"] {
    border-color: var(--border);
    color: var(--text-muted);
}
.control-option[data-value="unsure"]:hover,
.control-option[data-value="unsure"].selected {
    background: #95A5A6;
    border-color: #95A5A6;
    color: #fff;
}

.control-notes textarea {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    min-height: 40px;
}

/* ---------- Assessment Nav ---------- */
.assessment-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* ---------- Results ---------- */
.results-header {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.score-display {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-display.score-green { color: var(--success); }
.score-display.score-yellow { color: var(--warning); }
.score-display.score-red { color: var(--danger); }

.status-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.status-ready {
    background: #d4edda;
    color: #155724;
}
.status-nearly {
    background: #fff3cd;
    color: #856404;
}
.status-not-ready {
    background: #f8d7da;
    color: #721c24;
}

.results-summary {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.results-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.results-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.domain-score-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.domain-score-label {
    flex: 0 0 140px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domain-score-bar {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 100px;
    overflow: hidden;
}

.domain-score-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s ease;
}

.domain-score-fill.fill-green { background: var(--success); }
.domain-score-fill.fill-yellow { background: var(--warning); }
.domain-score-fill.fill-red { background: var(--danger); }

.domain-score-percent {
    flex: 0 0 36px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
}

.gap-item {
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--danger);
}

.gap-item .control-id {
    margin-bottom: 0.25rem;
}

.gap-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.locked-content {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.locked-content .lock-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.locked-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.roadmap-phase {
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary);
}

.roadmap-phase h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.roadmap-phase p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.roadmap-phase.locked {
    opacity: 0.5;
    border-left-color: var(--border);
}

.results-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    color: #fff;
}

.results-cta h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.results-cta p {
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.results-cta .btn-primary {
    background: #fff;
    color: var(--primary);
}
.results-cta .btn-primary:hover {
    background: #f0f4f8;
}

/* ---------- How It Works ---------- */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---------- Pricing ---------- */
.pricing {
    padding: 5rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.875rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq {
    padding: 5rem 0;
    background: var(--bg-white);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.testimonial-stars {
    color: #F39C12;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Final CTA ---------- */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    text-align: center;
    color: #fff;
}

.final-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.final-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.final-cta .btn-primary {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}
.final-cta .btn-primary:hover {
    background: #f0f4f8;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    color: #fff;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-by {
    margin-top: 0.5rem;
}

.footer-by a {
    color: rgba(255,255,255,0.9);
}

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

/* ---------- Loading Spinner ---------- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .mode-selector {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.25rem;
    }

    .assessment-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .assessment-nav .btn {
        width: 100%;
    }

    .control-options {
        flex-direction: column;
    }

    .control-option {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .score-display {
        font-size: 3.5rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step-line {
        width: 40px;
    }
}
