/* ===========================================================================
   AI Maturity Audit — Dasolo
   Clean, modern, slightly tech. Purple (#6B4FBB) used sparingly as accent.
   =========================================================================== */

:root {
    --purple: #6B4FBB;
    --purple-tint: #F1EDFA;
    --purple-tint-strong: #E7E0F6;

    --white: #FFFFFF;
    --surface: #F7F7F8;
    --border: #E5E7EB;

    --text: #1A1A1A;
    --text-secondary: #6B7280;

    --green: #1D9E75;
    --green-tint: #E6F5EF;
    --red: #D85A30;
    --red-tint: #FBEAE3;

    --radius: 8px;
    --maxw: 580px;
}

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

html, body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------- progress */

.progress {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--white);
}

.progress__bar {
    height: 6px;
    width: 100%;
    background: var(--surface);
    overflow: hidden;
}

.progress__fill {
    height: 100%;
    width: 9%;
    background: var(--purple);
    border-radius: 0 3px 3px 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress__meta {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 24px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ------------------------------------------------------------------- stage */

.stage {
    flex: 1;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 24px 32px;
    display: flex;
    flex-direction: column;
}

.stage--center {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* -------------------------------------------------------------------- card */

.card {
    animation: fade-in 0.32s ease both;
}

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

.step__eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 12px;
}

.step__title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
}

.step__subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 28px;
}

.step__hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 14px;
}

/* ------------------------------------------------------------- radio cards */

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.option:hover {
    background: var(--surface);
}

.option__dot {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1.5px solid #C9CCD3;
    border-radius: 50%;
    position: relative;
    transition: border-color 0.15s;
}

.option__label {
    flex: 1;
}

.option.is-selected {
    border-color: var(--purple);
    background: var(--purple-tint);
}

.option.is-selected .option__dot {
    border-color: var(--purple);
}

.option.is-selected .option__dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--purple);
}

/* quiz states */
.option.is-correct {
    border-color: var(--green);
    background: var(--green-tint);
}

.option.is-correct .option__dot {
    border-color: var(--green);
}

.option.is-wrong {
    border-color: var(--red);
    background: var(--red-tint);
}

.option.is-wrong .option__dot {
    border-color: var(--red);
}

.option__mark {
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 500;
}

.option.is-correct .option__mark { color: var(--green); }
.option.is-wrong .option__mark { color: var(--red); }

.options.is-locked .option {
    cursor: default;
}

.options.is-locked .option:hover {
    background: var(--white);
}

.options.is-locked .option.is-correct:hover { background: var(--green-tint); }
.options.is-locked .option.is-wrong:hover { background: var(--red-tint); }
.options.is-locked .option.is-selected:hover { background: var(--purple-tint); }

/* quiz feedback */
.feedback {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.feedback--correct {
    background: var(--green-tint);
    border-color: rgba(29, 158, 117, 0.25);
    color: #14704F;
}

.feedback--wrong {
    background: var(--red-tint);
    border-color: rgba(216, 90, 48, 0.25);
    color: #9C3C1B;
}

/* -------------------------------------------------------------------- pills */

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pill {
    min-height: 44px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9375rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pill:hover {
    background: var(--surface);
}

.pill.is-selected {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

/* ----------------------------------------------------------- text / inputs */

.other-field {
    margin-top: 16px;
    animation: fade-in 0.25s ease both;
}

.text-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

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

.text-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-tint-strong);
}

.input-error {
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--red);
}

/* --------------------------------------------------------------------- nav */

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

.btn-primary {
    appearance: none;
    border: none;
    min-height: 48px;
    padding: 12px 28px;
    margin-left: auto;
    background: var(--purple);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s, transform 0.05s;
}

.btn-primary:hover:not(:disabled) {
    background: #5C42A4;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

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

.btn-primary--lg {
    display: inline-block;
    text-decoration: none;
    margin: 28px auto 0;
    padding: 14px 32px;
    text-align: center;
}

.btn-back {
    appearance: none;
    border: none;
    background: none;
    padding: 8px 4px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: color 0.15s;
}

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

/* ----------------------------------------------------------- confirmation */

.confirm {
    max-width: var(--maxw);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirm__logo {
    height: 34px;
    width: auto;
    margin-bottom: 36px;
}

.confirm__wordmark {
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 36px;
}

.confirm__check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--purple-tint);
    color: var(--purple);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.confirm__title {
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 16px;
}

.confirm__hint {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text);
    max-width: 460px;
    margin-bottom: 20px;
}

.confirm__sent {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.confirm__sent strong {
    color: var(--text);
    font-weight: 500;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.site-footer__logo {
    height: 18px;
    width: auto;
}

.site-footer__wordmark {
    font-weight: 500;
    color: var(--text);
}

.site-footer__link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer__link:hover {
    color: var(--purple);
}

.site-footer__sep {
    color: #D1D5DB;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 560px) {
    .stage {
        padding: 28px 18px 24px;
    }

    .step__title {
        font-size: 1.3125rem;
    }

    .btn-primary {
        padding: 12px 22px;
    }

    .site-footer {
        justify-content: center;
    }
}
