/* ==========================================
   Digital Friction Scorecard - Styles
   SeenLabs 2024
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: var(--sl-blue-primary);
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Neutrals Light */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border: #334155;
    --border-hover: #475569;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   App Layout
   ========================================== */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header__home-link {
    display: flex;
}

.header__logo-img {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}

.header__title-group {
    display: flex;
    flex-direction: column;
}

.header__brand {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn--primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn--secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn--secondary:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn--ghost:hover:not(:disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn--icon {
    padding: var(--space-sm);
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn--icon:hover {
    color: var(--primary);
}

.btn--lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: block;
}

/* ==========================================
   Main Layout
   ========================================== */
.main {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Preview Sidebar */
.preview {
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

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

.preview__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.preview__badge {
    font-size: 0.75rem;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.preview__subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

/* Score Gauge */
.preview__score-container {
    text-align: center;
}

.score-gauge {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.score-gauge canvas {
    width: 100% !important;
    height: 100% !important;
}

.score-gauge__value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-gauge__value span:first-child {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.score-gauge__label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.score-interpretation {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.category-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.category-item__icon {
    font-size: 1rem;
}

.category-item__name {
    flex: 1;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.category-item__score {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Radar Chart */
.preview__chart {
    flex: 1;
    min-height: 200px;
}

.preview__chart canvas {
    max-height: 250px;
}

.preview__actions {
    margin-top: auto;
}

/* ==========================================
   Content Area
   ========================================== */
.content {
    padding: var(--space-xl) var(--space-2xl);
    max-width: 800px;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* Step Indicators */
.steps {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.step:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.step--active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step--completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: 600;
}

.step--active .step__number,
.step--completed .step__number {
    background: rgba(255, 255, 255, 0.3);
}

/* Step Content */
.step-content {
    display: none;
}

.step-content--active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Header */
.step-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.step-header__icon {
    font-size: 2rem;
    line-height: 1;
}

.step-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.step-header__desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Questions */
.questions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.question {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.question__label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.question__help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    font-size: 0.625rem;
    cursor: help;
    margin-left: var(--space-xs);
}

/* Rating Scale */
.rating-scale {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.rating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: var(--space-md) var(--space-sm);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rating-btn span {
    font-size: 0.625rem;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.rating-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.rating-btn--selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.rating-btn--selected span {
    color: rgba(255, 255, 255, 0.8);
}

.rating-btn--na {
    min-width: 50px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.rating-btn--na.rating-btn--selected {
    background: var(--text-tertiary);
    border-color: var(--text-tertiary);
    color: white;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

/* ==========================================
   Results Section
   ========================================== */
.results {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.results__hero {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--radius-xl);
}

.results__score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-lg);
}

.results__score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.results__score-value span:first-child {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.results__score-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.results__interpretation {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.results__section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.results__section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.results__section-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Priority Matrix */
.priority-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-md);
    min-height: 300px;
}

.matrix-quadrant {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.matrix-quadrant--fix-first {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.matrix-quadrant--schedule {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.matrix-quadrant--quick-win {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.matrix-quadrant--monitor {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.3);
}

.matrix-quadrant__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.matrix-quadrant--fix-first .matrix-quadrant__label {
    color: var(--danger);
}

.matrix-quadrant--schedule .matrix-quadrant__label {
    color: var(--warning);
}

.matrix-quadrant--quick-win .matrix-quadrant__label {
    color: var(--success);
}

.matrix-quadrant--monitor .matrix-quadrant__label {
    color: var(--text-secondary);
}

.matrix-quadrant__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.matrix-item {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

/* Recommendations */
.recommendations {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.recommendation {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.recommendation__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.recommendation__content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.recommendation__content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Category Breakdown */
.category-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.breakdown-item__icon {
    font-size: 1.25rem;
}

.breakdown-item__name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.breakdown-item__bar {
    width: 120px;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.breakdown-item__fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.breakdown-item__score {
    width: 40px;
    font-weight: 600;
    text-align: right;
    font-size: 0.875rem;
}

/* CTA Section */
.results__cta {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.results__cta p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.results__cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: var(--space-lg) var(--space-xl);
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--primary);
}

/* ==========================================
   Modal
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal--active {
    display: block;
}

.modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
}

.modal__close:hover {
    color: var(--text-primary);
}

.modal__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.modal__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.modal__header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.form-group input {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    font-family: var(--font-main);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal__disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
}

.modal__success {
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.modal__success h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.modal__success p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.modal__success .btn {
    margin-bottom: var(--space-sm);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
    }

    .preview {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .preview__chart {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: var(--space-md);
    }

    .header__brand {
        display: none;
    }

    .content {
        padding: var(--space-lg);
    }

    .steps {
        justify-content: center;
    }

    .step__label {
        display: none;
    }

    .rating-scale {
        justify-content: center;
    }

    .priority-matrix {
        grid-template-columns: 1fr;
    }

    .results__cta-buttons {
        flex-direction: column;
    }

    .results__cta-buttons .btn {
        width: 100%;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rating-btn {
        min-width: 50px;
        padding: var(--space-sm);
        font-size: 1rem;
    }

    .rating-btn span {
        display: none;
    }
}

/* ==========================================
   FAQ & Methodology Modals
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    overflow-y: auto;
    padding: var(--space-xl);
}

.modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-overlay.active .modal {
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.faq-modal,
.methodology-modal {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    margin: var(--space-xl) 0;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

/* FAQ Items */
.faq-modal__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq__question {
    display: block;
    padding: var(--space-md);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    background: var(--bg-secondary);
}

.faq__question:hover {
    color: var(--primary);
}

.faq__answer {
    padding: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Methodology Sections */
.methodology-modal__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.methodology-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.methodology-section p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.methodology-section ul {
    margin: var(--space-sm) 0 0 var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.methodology-section ul li {
    margin-bottom: var(--space-xs);
}

.methodology-section--sources {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.btn__icon-text {
    font-weight: 700;
    font-size: 1rem;
}

/* ==========================================
   Mobile & Accessibility Hardening Layer
   ========================================== */

/* Touch Targets (WCAG 2.1 Target Size) */
.theme-toggle,
.btn--icon,
button,
select,
input[type="text"],
input[type="email"],
input[type="number"],
.form-control,
.btn {
    min-height: 44px;
    /* Accessible touch target */
}

/* Fix iOS Input Zoom & Tap Area */
@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents auto-zoom on iOS */
    }
}

/* Range Sliders Touch Area */
input[type=range]::-webkit-slider-thumb {
    width: 44px;
    height: 44px;
    cursor: pointer;
    margin-top: -20px;
    /* Center thumb */
}

input[type=range]::-moz-range-thumb {
    width: 44px;
    height: 44px;
    cursor: pointer;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}