@media (prefers-reduced-motion: no-preference) {
    .button, .link-button, .sidebar nav a, .landing .marketing-header nav a {
        transition: background-color .2s ease, color .2s ease, border-color .2s ease,
            box-shadow .24s ease, translate .22s ease, scale .16s ease;
    }

    body:not(.landing) .button:active:not(:disabled) { scale: .97; }

    .org-card, .template-choice, .time-options label {
        transition: background-color .22s ease, border-color .22s ease, box-shadow .25s ease, translate .24s ease;
    }

    .template-choice:has(:checked), .time-options label:has(:checked) {
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent);
    }

    :is(input, select, textarea) {
        transition: border-color .18s ease, box-shadow .2s ease;
    }

    :is(input, select, textarea):focus-visible {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
    }

    body:not(.landing) details[open] > :not(summary) {
        animation: safro-disclosure .27s cubic-bezier(.2,.72,.25,1) both;
    }

    @keyframes safro-disclosure {
        from { opacity: .55; translate: 0 5px; }
        to { opacity: 1; translate: 0 0; }
    }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    body:not(.landing) .button:hover:not(:disabled) { translate: 0 -2px; box-shadow: 0 7px 16px #111b1820; }
    .org-card:hover { translate: 0 -3px; box-shadow: 0 10px 25px #111b1819; }
    .template-choice:hover, .time-options label:hover { translate: 0 -2px; border-color: var(--brand); }
}
