/* ═══════════════════════════════════════════════════════════════
   KITA-SICHTBARKEITS-CHECK — Stylesheet
   Alle Farben als CSS Custom Properties → einfach anpassbar
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ────────────────────────────────────────── */
:root {
    /* Markenfarben — PLATZHALTER, hier anpassen */
    --color-primary:     #2563EB; /* Blau */
    --color-primary-dark:#1E40AF; /* Dunkelblau */
    --color-accent:      #F59E0B; /* Amber/Gold */

    /* Neutral */
    --color-bg:          #F9FAFB;
    --color-surface:     #FFFFFF;
    --color-text:        #111827;
    --color-text-muted:  #6B7280;
    --color-border:      #E5E7EB;
    --color-border-focus:#93C5FD;

    /* Status */
    --color-success:     #16A34A;
    --color-success-light:#DCFCE7;
    --color-warning:     #D97706;
    --color-warning-light:#FEF3C7;
    --color-error:       #DC2626;
    --color-error-light: #FEE2E2;
    --color-good-light:  #4ADE80; /* 10–14 Punkte */

    /* Score-Farben */
    --color-score-0:     var(--color-error);
    --color-score-1:     var(--color-warning);
    --color-score-2:     #65A30D;
    --color-score-3:     var(--color-success);

    /* Abstände */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Radius */
    --radius-sm:  0.375rem;
    --radius-md:  0.75rem;
    --radius-lg:  1rem;
    --radius-xl:  1.5rem;
    --radius-full: 9999px;

    /* Schatten */
    --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
    --shadow-card:0 2px 8px rgba(0,0,0,.06);

    /* Typografie */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --line-height: 1.6;

    /* Transitions */
    --transition-fast:  150ms ease;
    --transition-base:  250ms ease;
    --transition-slide: 400ms ease;
}

/* ── 2. RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-primary);
    text-decoration: underline;
}

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

button {
    cursor: pointer;
    font-family: var(--font-sans);
    border: none;
    background: none;
}

input, select, textarea {
    font-family: var(--font-sans);
    font-size: var(--text-base);
}

/* ── 3. LAYOUT — CONTAINER ───────────────────────────────────── */
.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ── 4. HEADER ───────────────────────────────────────────────── */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 36px;
    width: auto;
}

/* ── 5. STATE MANAGEMENT ─────────────────────────────────────── */
.state {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 350ms ease, transform 350ms ease;
}

.state.state-active {
    display: block;
}

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

/* ── 6. HERO / STATE 1 ───────────────────────────────────────── */
.hero-inner {
    display: flex;
    justify-content: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero-content {
    text-align: center;
    max-width: 560px;
}

.hero-headline {
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-xl);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    box-shadow: var(--shadow-sm);
}

.badge svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.hero-context {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
}

/* ── 7. BUTTONS ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: background-color var(--transition-base),
                transform var(--transition-fast),
                box-shadow var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    min-height: 48px;
    border: 2px solid transparent;
}

.btn:focus-visible {
    outline: 3px solid var(--color-border-focus);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,.35);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.4);
    color: #fff;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37,99,235,.3);
}

.btn-primary:disabled {
    background-color: #93C5FD;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn-large {
    font-size: var(--text-xl);
    padding: 1rem 2rem;
    min-height: 60px;
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
}

/* Zurück-Button im Quiz */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.btn-back:hover {
    color: var(--color-text);
    background-color: var(--color-bg);
}

.btn-back:focus-visible {
    outline: 3px solid var(--color-border-focus);
    outline-offset: 2px;
}

/* Loading state */
.spin-icon {
    animation: spin 0.8s linear infinite;
}

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

/* ── 8. QUIZ / STATE 2 ───────────────────────────────────────── */
.quiz-wrapper {
    padding: var(--space-xl) 0 var(--space-2xl);
    min-height: calc(100vh - 65px);
    display: flex;
    flex-direction: column;
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-shrink: 0;
}

.progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-full);
    transition: width 350ms ease;
    width: 0%;
}

.progress-text {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: right;
}

/* Questions Viewport — overflow hidden for slide animations */
.quiz-questions-viewport {
    position: relative;
    overflow: hidden;
    flex: 1;
    /* min-height ensures the viewport is tall enough on mobile */
    min-height: 400px;
}

/* Individual question panel */
.quiz-question {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
    /* Not transitioning by default — JS adds transition class */
}

.quiz-question.is-transitioning {
    transition: transform var(--transition-slide), opacity var(--transition-slide);
}

.quiz-question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: var(--space-xl);
    text-align: center;
}

/* Answer Cards */
.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.answer-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    min-height: 60px;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: left;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color var(--transition-base),
                background-color var(--transition-base),
                box-shadow var(--transition-base),
                transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
    line-height: 1.4;
}

.answer-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.answer-card:focus-visible {
    outline: 3px solid var(--color-border-focus);
    outline-offset: 2px;
    border-color: var(--color-primary);
}

.answer-card:active {
    transform: translateY(0);
}

/* Selected state */
.answer-card.is-selected {
    border-color: var(--color-primary);
    background-color: #EFF6FF;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Check icon on answer cards */
.answer-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    margin-left: auto;
    transition: border-color var(--transition-base),
                background-color var(--transition-base);
    flex-shrink: 0;
}

.answer-card.is-selected .answer-check {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ── 9. LEAD FORM / STATE 3 ──────────────────────────────────── */
.lead-wrapper {
    padding: var(--space-2xl) 0;
    max-width: 480px;
    margin: 0 auto;
}

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

.lead-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--color-success-light);
    border-radius: 50%;
    color: var(--color-success);
    margin: 0 auto var(--space-lg);
}

.lead-headline {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.25;
}

.lead-subtext {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* Form elements */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

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

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
}

.required {
    color: var(--color-error);
    margin-left: 2px;
}

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

.form-input,
.form-select {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-input::placeholder {
    color: #9CA3AF;
}

.form-input.has-error,
.form-select.has-error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

/* Select arrow */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.75rem;
    cursor: pointer;
}

.field-hint {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.field-error {
    font-size: var(--text-sm);
    color: var(--color-error);
    font-weight: 500;
    min-height: 1.2em;
}

/* Global error */
.form-error-global {
    background: var(--color-error-light);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: var(--color-error);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* DSGVO Checkbox */
.form-group-check {
    gap: var(--space-sm);
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    cursor: pointer;
}

.check-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-box {
    display: block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-top: 2px;
    transition: border-color var(--transition-base),
                background-color var(--transition-base);
    position: relative;
    flex-shrink: 0;
}

.check-label input[type="checkbox"]:checked + .check-box {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.check-label:hover .check-box {
    border-color: var(--color-primary);
}

.check-label input[type="checkbox"]:focus-visible + .check-box {
    outline: 3px solid var(--color-border-focus);
    outline-offset: 2px;
}

.check-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.check-text a {
    color: var(--color-primary);
}

/* ── 10. RESULTS / STATE 4 ───────────────────────────────────── */
.results-wrapper {
    padding: var(--space-2xl) 0 var(--space-3xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

/* 4a: Score */
.results-score {
    text-align: center;
}

.score-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.score-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xs);
}

.score-max {
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--color-text-muted);
}

.score-bar-wrapper {
    max-width: 360px;
    margin: var(--space-lg) auto;
}

.score-bar-track {
    height: 12px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 900ms cubic-bezier(.22,.61,.36,1);
}

.score-category {
    font-size: var(--text-xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.score-description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* 4b: Profile Overview */
.results-profile {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
}

.results-section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.profile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.profile-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-area-name {
    flex: 1;
    font-size: var(--text-base);
    color: var(--color-text);
}

.profile-score {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-muted);
}

/* Dot colors by score */
.dot-0  { background-color: var(--color-error); }
.dot-1  { background-color: var(--color-warning); }
.dot-2  { background-color: #65A30D; }
.dot-3  { background-color: var(--color-success); }

/* 4c: Measures */
.results-measures {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.measures-header {
    margin-bottom: var(--space-xs);
}

.measures-subtext {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.measure-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: var(--space-md);
    align-items: start;
}

.measure-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: var(--text-lg);
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.measure-number-1 { background-color: var(--color-primary); }
.measure-number-2 { background-color: var(--color-primary-dark); }
.measure-number-3 { background-color: #3B82F6; }

.measure-body {}

.measure-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.measure-text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.measure-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.tag-effort {
    background: #F3F4F6;
    color: var(--color-text-muted);
}

.tag-impact-high {
    background: #DBEAFE;
    color: var(--color-primary-dark);
}

.tag-impact-very-high {
    background: #EDE9FE;
    color: #5B21B6;
}

.tag-impact-medium {
    background: #FEF3C7;
    color: #92400E;
}

/* Congrats box when few measures */
.congrats-box {
    background: var(--color-success-light);
    border: 1px solid #86EFAC;
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    color: #166534;
    font-weight: 500;
}

/* 4d: CTA */
.results-cta {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
}

.cta-email-note {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.65;
}

.cta-headline {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.cta-text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-xl);
}

/* ── 11. FOOTER ──────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0;
    text-align: center;
    background: var(--color-surface);
}

.site-footer p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.site-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ── 12. UTILITY ─────────────────────────────────────────────── */
[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── 13. RESPONSIVE — TABLET / DESKTOP ───────────────────────── */
@media (min-width: 640px) {
    .hero-headline {
        font-size: var(--text-4xl);
    }

    .hero-subheadline {
        font-size: var(--text-xl);
    }

    .quiz-question-text {
        font-size: 1.375rem;
    }

    .quiz-answers {
        /* 2-column layout on wider screens */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    /* Full-width if only 1 or 3 options (odd) — keep last item full-width if 3 */
    .quiz-answers.answers-1 { grid-template-columns: 1fr; }

    .score-number {
        font-size: 5rem;
    }

    .lead-headline {
        font-size: var(--text-3xl);
    }
}

@media (min-width: 768px) {
    .hero-inner {
        padding: 5rem 0 4rem;
    }

    .measure-card {
        padding: var(--space-xl) var(--space-2xl);
    }
}

/* ── 13b. ANALYSE-ANIMATION ─────────────────────────────────── */

.analyse-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--space-2xl) var(--space-md);
    gap: var(--space-lg);
    text-align: center;
}

.analyse-icon-wrap {
    width: 56px;
    height: 56px;
    position: relative;
}

/* Rotating spinner */
@keyframes analyse-spin {
    to { transform: rotate(360deg); }
}

.analyse-spinner {
    animation: analyse-spin 1s linear infinite;
    display: block;
}

/* Checkmark fade-in */
@keyframes analyse-check-in {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

.analyse-check {
    animation: analyse-check-in 0.35s ease forwards;
}

/* Progress track */
.analyse-track {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.analyse-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status text with fade animation on each step */
@keyframes analyse-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.analyse-status {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 280px;
    line-height: 1.5;
    margin: 0;
}

.analyse-status.analyse-status-fade {
    animation: analyse-fade-in 0.3s ease forwards;
}

/* ── 14. REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .state {
        transition: none;
    }
}
